Ejemplo n.º 1
0
 public static Graphics FromHdc(IntPtr hdc, IntPtr hdevice)
 {
     Gdip.CheckStatus(Gdip.GdipCreateFromHDC2(hdc, hdevice, out IntPtr nativeGraphics));
     return(new Graphics(nativeGraphics));
 }