Example #1
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);
        }
Example #2
0
File: Others.cs Project: misiek/foo
 public static extern GpStatus GdipSetCustomLineCapStrokeCaps(GpCustomLineCap customCap,
         GpLineCap startCap, GpLineCap endCap);
Example #3
0
File: Others.cs Project: misiek/foo
 public static extern GpStatus GdipGetCustomLineCapType(GpCustomLineCap customCap,
 out CustomLineCapType capType);
Example #4
0
File: Others.cs Project: misiek/foo
 public static extern GpStatus GdipDeleteCustomLineCap(GpCustomLineCap customCap);
Example #5
0
File: Others.cs Project: misiek/foo
        public static extern GpStatus GdipCreateCustomLineCap(GpPath fillPath, GpPath strokePath,
LineCap baseCap, float baseInset, out GpCustomLineCap customCap);
Example #6
0
File: Others.cs Project: misiek/foo
 public static extern GpStatus GdipCloneCustomLineCap(GpCustomLineCap customCap,
 out GpCustomLineCap clonedCap);
Example #7
0
 public CustomLineCap(GpCustomLineCap nativeCap, GpStatus status)
 {
     lastResult = status;
     SetNativeCap(nativeCap);
 }
Example #8
0
 void SetNativeCap(GpCustomLineCap nativeCap)
 {
     this.nativeCap = nativeCap;
 }
Example #9
0
File: Pens.cs Project: misiek/foo
 public static extern GpStatus GdipSetPenCustomEndCap(GpPen pen, GpCustomLineCap customCap);
Example #10
0
File: Pens.cs Project: misiek/foo
 public static extern GpStatus GdipGetPenCustomStartCap(GpPen pen, out GpCustomLineCap customCap);
Example #11
0
GdipGetPenCustomEndCap(GpPen pen, out GpCustomLineCap customCap);
Example #12
0
GdipSetPenCustomEndCap(GpPen pen, GpCustomLineCap customCap);
Example #13
0
GdipGetPenCustomStartCap(GpPen pen, out GpCustomLineCap customCap);
Example #14
0
GdipSetPenCustomStartCap(GpPen pen, GpCustomLineCap customCap);
Example #15
0
        public GpStatus SetCustomStartCap(CustomLineCap customCap)
        {
            GpCustomLineCap nativeCap = new GpCustomLineCap();
            if (customCap != null)
                nativeCap = customCap.nativeCap;

            return SetStatus(NativeMethods.GdipSetPenCustomStartCap(nativePen,
                                                                  nativeCap));
        }