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

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

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

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

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

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