<PackageReference Include="System.Drawing.Common" Version="10.0.4" />

System.Drawing.Imaging.CachedBitmap

public sealed class CachedBitmap : IDisposable
Represents a device-dependent copy of a Bitmap matching a specified Graphics object's current device (display) settings. Avoids reformatting step when rendering, which can significantly improve performance.
namespace System.Drawing.Imaging { public sealed class CachedBitmap : IDisposable { public CachedBitmap(Bitmap bitmap, Graphics graphics); public void Dispose(); } }