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

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

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

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