public GraphicsPlus(HDC hdc) { GpGraphics Graphics = new GpGraphics(); lastResult = GdiPlus.GdipCreateFromHDC(hdc, out Graphics); SetNativeGraphics(Graphics); }
public GraphicsPlus(HDC hdc, HANDLE hdevice) { GpGraphics Graphics = new GpGraphics(); lastResult = GdiPlus.GdipCreateFromHDC2(hdc, hdevice, out Graphics); SetNativeGraphics(Graphics); }
internal static extern GpStatus GdipCreateFromHDC2(HDC hdc, IntPtr hDevice, out GpGraphics graphics);
internal static extern GpStatus GdipCreateFromHDC(HDC hdc, out GpGraphics graphics);
public static extern GpStatus GdipCreateFontFromDC(HDC hdc, out GpFont font);
public extern static GpStatus GdipCreateFontFromDC(HDC hdc, out GpFont font);
public void ReleaseHDC(HDC hdc) { SetStatus(GdiPlus.GdipReleaseDC(nativeGraphics, hdc)); }
extern static internal GpStatus GdipCreateFromHDC2(HDC hdc, IntPtr hDevice, out GpGraphics graphics);
public static GraphicsPlus FromHDC(HDC hdc, HANDLE hdevice) { return new GraphicsPlus(hdc, hdevice); }
public static GraphicsPlus FromHDC(HDC hdc) { return new GraphicsPlus(hdc); }
public static GraphicsPlus FromHDC(HDC hdc, HANDLE hdevice) { return(new GraphicsPlus(hdc, hdevice)); }
public static GraphicsPlus FromHDC(HDC hdc) { return(new GraphicsPlus(hdc)); }
extern static internal GpStatus GdipReleaseDC(GpGraphics graphics, HDC hdc);
extern static internal GpStatus GdipGetDC(GpGraphics graphics, out HDC hdc);
internal static extern GpStatus GdipGetDC(GpGraphics graphics, out HDC hdc);
internal static extern GpStatus GdipReleaseDC(GpGraphics graphics, HDC hdc);
extern static internal GpStatus GdipCreateFromHDC(HDC hdc, out GpGraphics graphics);