public GraphicsPlus(HDC hdc) { GpGraphics Graphics = new GpGraphics(); lastResult = NativeMethods.GdipCreateFromHDC(hdc, out Graphics); SetNativeGraphics(Graphics); }
public static extern GpStatus GdipDrawString( GpGraphics graphics, string text, INT length, GpFont font, ref RectF layoutRect, GpStringFormat stringFormat, GpBrush brush );
public GraphicsPlus(HDC hdc, HANDLE hdevice) { GpGraphics Graphics = new GpGraphics(); lastResult = NativeMethods.GdipCreateFromHDC2(hdc, hdevice, out Graphics); SetNativeGraphics(Graphics); }
public GraphicsPlus(ImagePlus image) { GpGraphics Graphics = new GpGraphics(); if (image != null) { lastResult = NativeMethods.GdipGetImageGraphicsContext( image.nativeImage, out Graphics); } SetNativeGraphics(Graphics); }
public GraphicsPlus(HWND hwnd, bool icm) { GpGraphics Graphics = new GpGraphics(); if (icm) { lastResult = NativeMethods.GdipCreateFromHWNDICM(hwnd, out Graphics); } else { lastResult = NativeMethods.GdipCreateFromHWND(hwnd, out Graphics); } SetNativeGraphics(Graphics); }
GdipIsVisiblePathPointI(GpPath path, int x, int y, GpGraphics graphics, out bool result);
protected GraphicsPlus(GpGraphics Graphics) { lastResult = GpStatus.Ok; SetNativeGraphics(Graphics); }
protected virtual void Dispose(bool disposing) { if (disposing) { } // free native resources if there are any. if ((IntPtr)nativeGraphics != IntPtr.Zero) { NativeMethods.GdipDeleteGraphics(nativeGraphics); nativeGraphics = new GpGraphics(); } }
GdipDrawPie(GpGraphics graphics, GpPen pen, float x, float y, float width, float height, float startAngle, float sweepAngle);
GdipDrawEllipse(GpGraphics graphics, GpPen pen, float x, float y, float width, float height);
GdipDrawRectangleI(GpGraphics graphics, GpPen pen, int x, int y, int width, int height);
GdipDrawBeziersI(GpGraphics graphics, GpPen pen, GpPoint[] points, int count);
GdipDrawBezier(GpGraphics graphics, GpPen pen, float x1, float y1, float x2, float y2, float x3, float y3, float x4, float y4);
public static extern GpStatus GdipFillRectangleI(GpGraphics graphics, GpBrush brush, INT x, INT y, INT width, INT height);
public static extern GpStatus GdipDeleteGraphics(GpGraphics graphics);
public static extern GpStatus GdipCreateFromHWND(HWND hwnd, out GpGraphics graphics);
public static extern GpStatus GdipCreateFromHDC(HDC hdc, out GpGraphics graphics);
GdipFillRegion(GpGraphics graphics, GpBrush brush, GpRegion region);
GdipFillPolygon2I(GpGraphics graphics, GpSolidFill brush, GpPoint[] points, int count);
GdipDrawBezierI(GpGraphics graphics, GpPen pen, int x1, int y1, int x2, int y2, int x3, int y3, int x4, int y4);
GdipFillEllipse(GpGraphics graphics, GpBrush brush, float x, float y, float width, float height);
GdipDrawRectangle(GpGraphics graphics, GpPen pen, float x, float y, float width, float height);
GdipFillEllipseI(GpGraphics graphics, GpBrush brush, int x, int y, int width, int height);
GdipDrawRectanglesI(GpGraphics graphics, GpPen pen, GpRect[] rects, int count);
GdipFillPie(GpGraphics graphics, GpBrush brush, float x, float y, float width, float height, float startAngle, float sweepAngle);
GdipDrawEllipseI(GpGraphics graphics, GpPen pen, int x, int y, int width, int height);
GdipFillPieI(GpGraphics graphics, GpBrush brush, int x, int y, int width, int height, float startAngle, float sweepAngle);
GdipDrawPieI(GpGraphics graphics, GpPen pen, int x, int y, int width, int height, float startAngle, float sweepAngle);
GdipFillPath(GpGraphics graphics, GpBrush brush, GpPath path);
protected void SetNativeGraphics(GpGraphics Graphics) { this.nativeGraphics = Graphics; }
GdipFillClosedCurveI(GpGraphics graphics, GpBrush brush, GpPoint[] points, int count);
GdipIsVisiblePathPoint(GpPath path, float x, float y, GpGraphics graphics, out bool result);
GdipDrawLinesI(GpGraphics graphics, GpPen pen, GpPoint[] points, int count);
GdipIsOutlineVisiblePathPointI(GpPath path, int x, int y, GpPen pen, GpGraphics graphics, out bool result);
GdipFillClosedCurve2I(GpGraphics graphics, GpBrush brush, GpPoint[] points, int count, float tension, FillMode fillMode);