Beispiel #1
0
        public void SetCustomEndCap(CustomLineCap customCap)
        {
            GpCustomLineCap nativeCap = new GpCustomLineCap();

            if (customCap != null)
            {
                nativeCap = customCap.nativeCap;
            }

            SetStatus(GdiPlus.GdipSetPenCustomEndCap(nativePen,
                                                     nativeCap));
        }
Beispiel #2
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 #3
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 #4
0
 void SetNativeCap(GpCustomLineCap nativeCap)
 {
     this.nativeCap = nativeCap;
 }
Beispiel #5
0
 internal static extern GpStatus GdipGetPenCustomStartCap(GpPen pen, out GpCustomLineCap customCap);
Beispiel #6
0
 internal static extern GpStatus GdipSetPenCustomEndCap(GpPen pen, GpCustomLineCap customCap);
Beispiel #7
0
 internal static extern GpStatus GdipCreateCustomLineCap(GpPath fillPath, GpPath strokePath, LineCap baseCap, float baseInset, out GpCustomLineCap customCap);
Beispiel #8
0
 internal static extern GpStatus GdipSetCustomLineCapStrokeCaps(GpCustomLineCap customCap, GpLineCap startCap, GpLineCap endCap);
Beispiel #9
0
 internal static extern GpStatus GdipDeleteCustomLineCap(GpCustomLineCap customCap);
Beispiel #10
0
 internal static extern GpStatus GdipDeleteCustomLineCap(GpCustomLineCap customCap);
Beispiel #11
0
 internal static extern GpStatus GdipCreateCustomLineCap(GpPath fillPath, GpPath strokePath, LineCap baseCap, float baseInset, out GpCustomLineCap customCap);
Beispiel #12
0
 extern static internal GpStatus  GdipGetPenCustomEndCap(GpPen pen, out GpCustomLineCap customCap);
Beispiel #13
0
 extern static internal GpStatus GdipSetPenCustomStartCap(GpPen pen, GpCustomLineCap customCap);
Beispiel #14
0
        public void SetCustomStartCap(CustomLineCap customCap)
        {
            GpCustomLineCap nativeCap = new GpCustomLineCap();
            if (customCap != null)
                nativeCap = customCap.nativeCap;

            SetStatus(GdiPlus.GdipSetPenCustomStartCap(nativePen,
                                                                  nativeCap));
        }
Beispiel #15
0
 void SetNativeCap(GpCustomLineCap nativeCap)
 {
     this.nativeCap = nativeCap;
 }
Beispiel #16
0
 internal static extern GpStatus GdipSetCustomLineCapStrokeCaps(GpCustomLineCap customCap, GpLineCap startCap, GpLineCap endCap);
Beispiel #17
0
 public CustomLineCap(GpCustomLineCap nativeCap, GpStatus status)
 {
     lastResult = status;
     SetNativeCap(nativeCap);
 }
Beispiel #18
0
 public CustomLineCap(GpCustomLineCap nativeCap, GpStatus status)
 {
     lastResult = status;
     SetNativeCap(nativeCap);
 }