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); }
public static extern GpStatus GdipSetCustomLineCapStrokeCaps(GpCustomLineCap customCap, GpLineCap startCap, GpLineCap endCap);
public static extern GpStatus GdipGetCustomLineCapType(GpCustomLineCap customCap, out CustomLineCapType capType);
public static extern GpStatus GdipDeleteCustomLineCap(GpCustomLineCap customCap);
public static extern GpStatus GdipCreateCustomLineCap(GpPath fillPath, GpPath strokePath, LineCap baseCap, float baseInset, out GpCustomLineCap customCap);
public static extern GpStatus GdipCloneCustomLineCap(GpCustomLineCap customCap, out GpCustomLineCap clonedCap);
public CustomLineCap(GpCustomLineCap nativeCap, GpStatus status) { lastResult = status; SetNativeCap(nativeCap); }
void SetNativeCap(GpCustomLineCap nativeCap) { this.nativeCap = nativeCap; }
public static extern GpStatus GdipSetPenCustomEndCap(GpPen pen, GpCustomLineCap customCap);
public static extern GpStatus GdipGetPenCustomStartCap(GpPen pen, out GpCustomLineCap customCap);
GdipGetPenCustomEndCap(GpPen pen, out GpCustomLineCap customCap);
GdipSetPenCustomEndCap(GpPen pen, GpCustomLineCap customCap);
GdipGetPenCustomStartCap(GpPen pen, out GpCustomLineCap customCap);
GdipSetPenCustomStartCap(GpPen pen, GpCustomLineCap customCap);
public GpStatus SetCustomStartCap(CustomLineCap customCap) { GpCustomLineCap nativeCap = new GpCustomLineCap(); if (customCap != null) nativeCap = customCap.nativeCap; return SetStatus(NativeMethods.GdipSetPenCustomStartCap(nativePen, nativeCap)); }