public static Graphics FromHdcInternal(IntPtr hdc) { Gdip.CheckStatus(Gdip.GdipCreateFromHDC(hdc, out IntPtr nativeGraphics)); return(new Graphics(nativeGraphics)); }