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

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

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

            return(new GraphicsPath(clonepath));
        }
Beispiel #3
0
 protected virtual void Dispose(bool disposing)
 {
     if (disposing)
     {
     }
     if ((IntPtr)nativePath != IntPtr.Zero)
     {
         GdiPlus.GdipDeletePath(nativePath);
         nativePath = new GpPath();
     }
 }
Beispiel #4
0
        public void AddPath(GraphicsPath addingPath, bool connect)
        {
            GpPath nativePath2 = null;

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

            SetStatus(GdiPlus.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 = GdiPlus.GdipCreateCustomLineCap(
                nativeFillPath, nativeStrokePath,
                baseCap, baseInset, out nativeCap);
        }
Beispiel #6
0
 internal static extern GpStatus GdipStartPathFigure(GpPath path);
Beispiel #7
0
 internal static extern GpStatus GdipCreatePath(FillMode brushMode, out GpPath path);
Beispiel #8
0
 internal static extern GpStatus GdipAddPathPolygon(GpPath path, PointF[] points, int count);
Beispiel #9
0
 internal static extern GpStatus GdipAddPathBeziersI(GpPath path, Point[] points, int count);
Beispiel #10
0
 internal static extern GpStatus GdipSetPathFillMode(GpPath path, FillMode fillmode);
Beispiel #11
0
 internal static extern GpStatus GdipAddPathLine(GpPath path, float x1, float y1, float x2, float y2);
Beispiel #12
0
 internal static extern GpStatus GdipAddPathLine2I(GpPath path, Point[] points, int count);
Beispiel #13
0
 internal static extern GpStatus GdipResetPath(GpPath path);
Beispiel #14
0
 internal static extern GpStatus GdipAddPathEllipseI(GpPath path, int x, int y, int width, int height);
Beispiel #15
0
 internal static extern GpStatus GdipAddPathLine(GpPath path, float x1, float y1, float x2, float y2);
Beispiel #16
0
 internal static extern GpStatus GdipAddPathEllipse(GpPath path, float x, float y, float width, float height);
Beispiel #17
0
 internal static extern GpStatus GdipAddPathBeziersI(GpPath path, Point[] points, int count);
Beispiel #18
0
 internal static extern GpStatus GdipAddPathArc(GpPath path, float x, float y, float width, float height, float startAngle, float sweepAngle);
Beispiel #19
0
 internal static extern GpStatus GdipIsVisiblePathPointI(GpPath path, int x, int y, GpGraphics graphics, out bool result);
Beispiel #20
0
 internal static extern GpStatus GdipAddPathPath(GpPath path, GpPath addingPath, bool connect);
Beispiel #21
0
 internal static extern GpStatus GdipClonePath(GpPath path, out GpPath clonePath);
Beispiel #22
0
 internal static extern GpStatus GdipAddPathPieI(GpPath path, int x, int y, int width, int height, float startAngle, float sweepAngle);
Beispiel #23
0
 internal static extern GpStatus GdipGetPathTypes(GpPath path, byte[] types, int count);
Beispiel #24
0
 internal static extern GpStatus GdipAddPathPolygon(GpPath path, PointF[] points, int count);
Beispiel #25
0
 internal static extern GpStatus GdipClosePathFigures(GpPath path);
Beispiel #26
0
 internal static extern GpStatus GdipAddPathRectangle(GpPath path, float x, float y, float width, float height);
Beispiel #27
0
 internal static extern GpStatus GdipAddPathEllipse(GpPath path, float x, float y, float width, float height);
Beispiel #28
0
 internal static extern GpStatus GdipAddPathRectangleI(GpPath path, int x, int y, int width, int height);
Beispiel #29
0
 internal static extern GpStatus GdipAddPathLine2I(GpPath path, Point[] points, int count);
Beispiel #30
0
 internal static extern GpStatus GdipAddPathRectanglesI(GpPath path, Rectangle[] rects, int count);
Beispiel #31
0
 internal static extern GpStatus GdipAddPathRectanglesI(GpPath path, Rectangle[] rects, int count);
Beispiel #32
0
 internal static extern GpStatus GdipClonePath(GpPath path, out GpPath clonePath);
Beispiel #33
0
 protected virtual void Dispose(bool disposing)
 {
     if (disposing)
     {
     }
     if ((IntPtr)nativePath != IntPtr.Zero)
     {
         GdiPlus.GdipDeletePath(nativePath);
         nativePath = new GpPath();
     }
 }
Beispiel #34
0
 internal static extern GpStatus GdipClosePathFigures(GpPath path);
Beispiel #35
0
 internal static extern GpStatus GdipAddPathEllipseI(GpPath path, int x, int y, int width, int height);
Beispiel #36
0
 internal static extern GpStatus GdipCreatePath(FillMode brushMode, out GpPath path);
Beispiel #37
0
 internal static extern GpStatus GdipIsOutlineVisiblePathPoint(GpPath path, float x, float y, GpPen pen, GpGraphics graphics, out bool result);
Beispiel #38
0
 internal static extern GpStatus GdipDeletePath(GpPath path);
Beispiel #39
0
 internal static extern GpStatus GdipDeletePath(GpPath path);
Beispiel #40
0
 internal static extern GpStatus GdipGetPathFillMode(GpPath path, out FillMode fillmode);
Beispiel #41
0
 internal static extern GpStatus GdipGetPointCount(GpPath path, out int count);
Beispiel #42
0
 internal static extern GpStatus GdipGetPathLastPoint(GpPath path, out PointF lastPoint);
Beispiel #43
0
 internal static extern GpStatus GdipGetPathPointsI(GpPath path, Point[] points, int count);
Beispiel #44
0
 internal static extern GpStatus GdipGetPathPointsI(GpPath path, Point[] points, int count);
Beispiel #45
0
 internal static extern GpStatus GdipStartPathFigure(GpPath path);
Beispiel #46
0
 internal static extern GpStatus GdipGetPathTypes(GpPath path, byte[] types, int count);
Beispiel #47
0
 internal static extern GpStatus GdipGetPathLastPoint(GpPath path, out PointF lastPoint);
Beispiel #48
0
 internal static extern GpStatus GdipGetPointCount(GpPath path, out int count);
Beispiel #49
0
 GdipAddPathRectangle(GpPath path, float x, float y, float width, float height);
Beispiel #50
0
 internal static extern GpStatus GdipIsVisiblePathPoint(GpPath path, float x, float y, GpGraphics graphics, out bool result);
Beispiel #51
0
 internal static extern GpStatus GdipAddPathPie(GpPath path, float x, float y, float width, float height, float startAngle, float sweepAngle);
Beispiel #52
0
 internal static extern GpStatus GdipCreateCustomLineCap(GpPath fillPath, GpPath strokePath, LineCap baseCap, float baseInset, out GpCustomLineCap customCap);
Beispiel #53
0
 internal static extern GpStatus GdipAddPathPath(GpPath path, GpPath addingPath, bool connect);
Beispiel #54
0
 public GraphicsPath(FillMode fillMode)
 {
     nativePath = null;
     lastResult = GdiPlus.GdipCreatePath(fillMode, out nativePath);
 }
Beispiel #55
0
 internal static extern GpStatus GdipAddPathArcI(GpPath path, int x, int y, int width, int height, float startAngle, float sweepAngle);
Beispiel #56
0
 void SetNativePath(GpPath nativePath)
 {
     this.nativePath = nativePath;
 }
Beispiel #57
0
 internal static extern GpStatus GdipAddPathRectangleI(GpPath path, int x, int y, int width, int height);
Beispiel #58
0
 protected GraphicsPath(GpPath nativePath)
 {
     lastResult = GpStatus.Ok;
     SetNativePath(nativePath);
 }
Beispiel #59
0
 internal static extern GpStatus GdipCreatePathGradientFromPath(GpPath path,
     out GpPathGradient polyGradient);
Beispiel #60
0
 internal static extern GpStatus GdipResetPath(GpPath path);