public GraphicsPath(GraphicsPath path) { GpPath clonepath = null; SetStatus(NativeMethods.GdipClonePath(path.nativePath, out clonepath)); SetNativePath(clonepath); }
public GraphicsPath Clone() { GpPath clonepath = null; SetStatus(NativeMethods.GdipClonePath(nativePath, out clonepath)); return(new GraphicsPath(clonepath)); }
protected virtual void Dispose(bool disposing) { if (disposing) { } // free native resources if there are any. if ((IntPtr)nativePath != IntPtr.Zero) { NativeMethods.GdipDeletePath(nativePath); nativePath = new GpPath(); } }
public GpStatus AddPath(GraphicsPath addingPath, bool connect) { GpPath nativePath2 = null; if (addingPath != null) { nativePath2 = addingPath.nativePath; } return(SetStatus(NativeMethods.GdipAddPathPath(nativePath, nativePath2, connect))); }
public CustomLineCap( GraphicsPath fillPath, GraphicsPath strokePath, LineCap baseCap, float baseInset ) { nativeCap = new GpCustomLineCap(); GpPath nativeFillPath = null; GpPath nativeStrokePath = null; if (fillPath != null) { nativeFillPath = fillPath.nativePath; } if (strokePath != null) { nativeStrokePath = strokePath.nativePath; } lastResult = NativeMethods.GdipCreateCustomLineCap( nativeFillPath, nativeStrokePath, baseCap, baseInset, out nativeCap); }
GdipAddPathBeziers(GpPath path, GpPointF[] points, int count);
GdipAddPathCurve(GpPath path, GpPointF[] points, int count);
void SetNativePath(GpPath nativePath) { this.nativePath = nativePath; }
GdipSetPathFillMode(GpPath path, FillMode fillmode);
GdipGetPathPointsI(GpPath path, GpPoint[] points, int count);
GdipGetPathTypes(GpPath path, byte[] types, int count);
GdipReversePath(GpPath path);
GdipDrawPath(GpGraphics graphics, GpPen pen, GpPath path);
GdipSetPathMarker(GpPath path);
GdipClearPathMarkers(GpPath path);
GdipClosePathFigures(GpPath path);
GdipStartPathFigure(GpPath path);
GdipGetPathData(GpPath path, out GpPathData pathData);
GdipAddPathCurve2(GpPath path, GpPointF[] points, int count, float tension);
GdipGetPathLastPoint(GpPath path, out GpPointF lastPoint);
GdipAddPathCurve3(GpPath path, GpPointF[] points, int count, int offset, int numberOfSegments, float tension);
GdipAddPathLine(GpPath path, float x1, float y1, float x2, float y2);
GdipFillPath(GpGraphics graphics, GpBrush brush, GpPath path);
GdipGetPointCount(GpPath path, out int count);
GdipGetPathPoints(GpPath path, GpPointF[] points, int count);
GdipAddPathArc(GpPath path, float x, float y, float width, float height, float startAngle, float sweepAngle);
GraphicsPath(GpPath nativePath) { lastResult = GpStatus.Ok; SetNativePath(nativePath); }
GdipAddPathBezier(GpPath path, float x1, float y1, float x2, float y2, float x3, float y3, float x4, float y4);
GdipAddPathLine2(GpPath path, GpPointF[] points, int count);
GdipGetPathFillMode(GpPath path, out FillMode fillmode);