<PackageReference Include="System.Drawing.Common" Version="10.0.0-preview.6.25358.103" />

IGraphicsHdcProvider

Used to provide a way to give DeviceContextHdcScope direct internal access to HDC's.
bool IsGraphicsStateClean { get; }

If this flag is true we expect that the GpGraphics object obtained through GetGraphics should not have a GpRegion clip or GpMatrix applied and therefore it is safe to skip getting them.

IGraphics GetGraphics(bool createIfNeeded)

Get the GpGraphics object.

Gets the HDC, if the object was created from one.