Beispiel #1
0
        public GraphicsPath(GraphicsPath path)
        {
            GpPath clonepath = null;

            SetStatus(NativeMethods.GdipClonePath(path.nativePath, out clonepath));
            SetNativePath(clonepath);
        }
Beispiel #2
0
        public GraphicsPath Clone()
        {
            GpPath clonepath = null;

            SetStatus(NativeMethods.GdipClonePath(nativePath, out clonepath));

            return(new GraphicsPath(clonepath));
        }
Beispiel #3
0
 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();
     }
 }
Beispiel #4
0
        public GpStatus AddPath(GraphicsPath addingPath,
                                bool connect)
        {
            GpPath nativePath2 = null;

            if (addingPath != null)
            {
                nativePath2 = addingPath.nativePath;
            }

            return(SetStatus(NativeMethods.GdipAddPathPath(nativePath, nativePath2,
                                                           connect)));
        }
Beispiel #5
0
        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);
        }
Beispiel #6
0
 GdipAddPathBeziers(GpPath path, GpPointF[] points, int count);
Beispiel #7
0
 GdipAddPathCurve(GpPath path, GpPointF[] points, int count);
Beispiel #8
0
 void SetNativePath(GpPath nativePath)
 {
     this.nativePath = nativePath;
 }
Beispiel #9
0
 GdipSetPathFillMode(GpPath path, FillMode fillmode);
Beispiel #10
0
 GdipGetPathPointsI(GpPath path, GpPoint[] points, int count);
Beispiel #11
0
 GdipGetPathTypes(GpPath path, byte[] types, int count);
Beispiel #12
0
 GdipReversePath(GpPath path);
Beispiel #13
0
 GdipDrawPath(GpGraphics graphics, GpPen pen, GpPath path);
Beispiel #14
0
 GdipSetPathMarker(GpPath path);
Beispiel #15
0
 GdipClearPathMarkers(GpPath path);
Beispiel #16
0
 GdipClosePathFigures(GpPath path);
Beispiel #17
0
 GdipStartPathFigure(GpPath path);
Beispiel #18
0
 GdipGetPathData(GpPath path, out GpPathData pathData);
Beispiel #19
0
 GdipAddPathCurve2(GpPath path, GpPointF[] points, int count,
                   float tension);
Beispiel #20
0
 GdipGetPathLastPoint(GpPath path, out GpPointF lastPoint);
Beispiel #21
0
 GdipAddPathCurve3(GpPath path, GpPointF[] points, int count,
                   int offset, int numberOfSegments, float tension);
Beispiel #22
0
 GdipAddPathLine(GpPath path, float x1, float y1, float x2, float y2);
Beispiel #23
0
 GdipFillPath(GpGraphics graphics, GpBrush brush, GpPath path);
Beispiel #24
0
 GdipGetPointCount(GpPath path, out int count);
Beispiel #25
0
 GdipGetPathPoints(GpPath path, GpPointF[] points, int count);
Beispiel #26
0
 GdipAddPathArc(GpPath path, float x, float y, float width, float height,
                float startAngle, float sweepAngle);
Beispiel #27
0
 GraphicsPath(GpPath nativePath)
 {
     lastResult = GpStatus.Ok;
     SetNativePath(nativePath);
 }
Beispiel #28
0
 GdipAddPathBezier(GpPath path, float x1, float y1, float x2, float y2,
                   float x3, float y3, float x4, float y4);
Beispiel #29
0
 GdipAddPathLine2(GpPath path, GpPointF[] points, int count);
Beispiel #30
0
 GdipGetPathFillMode(GpPath path, out FillMode fillmode);