IGraphicsHdcProvider
interface IGraphicsHdcProvider
Used to provide a way to give DeviceContextHdcScope direct internal access to HDC's.
using System.Runtime.CompilerServices;
using Windows.Win32.Graphics.Gdi;
namespace System.Drawing
{
[NullableContext(2)]
internal interface IGraphicsHdcProvider
{
bool IsGraphicsStateClean { get; }
HDC GetHdc();
IGraphics GetGraphics(bool createIfNeeded);
}
}