public PenPlus(Color color, float width, bool opaque) { int c = color.ToArgb(); if (opaque) c |= (0xff << 24); Unit unit = Unit.UnitWorld; nativePen = null; lastResult = GdiPlus.GdipCreatePen1(c, width, unit, out nativePen); }
extern static internal GpStatus GdipSetPenDashOffset(GpPen pen, float offset);
internal static extern GpStatus GdipResetPenTransform(GpPen pen);
internal static extern GpStatus GdipGetPenTransform(GpPen pen, out GpMatrix matrix);
internal static extern GpStatus GdipGetPenLineJoin(GpPen pen, out LineJoin lineJoin);
internal static extern GpStatus GdipGetPenDashOffset(GpPen pen, out float offset);
internal static extern GpStatus GdipGetPenCustomStartCap(GpPen pen, out GpCustomLineCap customCap);
internal static extern GpStatus GdipCreatePen2(GpBrush brush, float width, Unit unit, out GpPen pen);
extern static internal GpStatus GdipDeletePen(GpPen pen);
extern static internal GpStatus GdipClonePen(GpPen pen, out GpPen clonepen);
extern static internal GpStatus GdipCreatePen2(GpBrush brush, float width, Unit unit, out GpPen pen);
extern static internal GpStatus GdipGetPenCompoundArray(GpPen pen, float[] dash, int count);
extern static internal GpStatus GdipGetPenCompoundCount(GpPen pen, out int count);
extern static internal GpStatus GdipSetPenDashArray(GpPen pen, float[] dash, int count);
extern static internal GpStatus GdipGetPenDashCount(GpPen pen, out int count);
internal static extern GpStatus GdipSetPenLineCap197819(GpPen pen, LineCap startCap, LineCap endCap, DashCap dashCap);
internal static extern GpStatus GdipCreatePen1(int color, float width, Unit unit, out GpPen pen);
extern static internal GpStatus GdipGetPenWidth(GpPen pen, out float width);
internal static extern GpStatus GdipGetPenColor(GpPen pen, out int argb);
extern static internal GpStatus GdipSetPenUnit(GpPen pen, Unit unit);
internal static extern GpStatus GdipGetPenDashCap197819(GpPen pen, out DashCap dashCap);
extern static internal GpStatus GdipGetPenUnit(GpPen pen, out Unit unit);
internal static extern GpStatus GdipGetPenEndCap(GpPen pen, out LineCap endCap);
GdipSetPenLineCap197819(GpPen pen, LineCap startCap, LineCap endCap, DashCap dashCap);
internal static extern GpStatus GdipGetPenMode(GpPen pen, out PenAlignment penMode);
extern static internal GpStatus GdipGetPenStartCap(GpPen pen, out LineCap startCap);
internal static extern GpStatus GdipGetPenWidth(GpPen pen, out float width);
extern static internal GpStatus GdipGetPenEndCap(GpPen pen, out LineCap endCap);
internal static extern GpStatus GdipScalePenTransform(GpPen pen, float sx, float sy, MatrixOrder order);
extern static internal GpStatus GdipGetPenDashCap197819(GpPen pen, out DashCap dashCap);
internal static extern GpStatus GdipClonePen(GpPen pen, out GpPen clonepen);
extern static internal GpStatus GdipGetPenLineJoin(GpPen pen, out LineJoin lineJoin);
internal static extern GpStatus GdipSetPenUnit(GpPen pen, Unit unit);
extern static internal GpStatus GdipSetPenCustomStartCap(GpPen pen, GpCustomLineCap customCap);
internal static extern GpStatus GdipTranslatePenTransform(GpPen pen, float dx, float dy, MatrixOrder order);
extern static internal GpStatus GdipGetPenCustomEndCap(GpPen pen, out GpCustomLineCap customCap);
internal static extern GpStatus GdipDeletePen(GpPen pen);
extern static internal GpStatus GdipGetPenMiterLimit(GpPen pen, out float miterLimit);
internal static extern GpStatus GdipGetPenCompoundCount(GpPen pen, out int count);
extern static internal GpStatus GdipGetPenMode(GpPen pen, out PenAlignment penMode);
internal static extern GpStatus GdipGetPenDashArray(GpPen pen, float[] dash, int count);
extern static internal GpStatus GdipGetPenTransform(GpPen pen, out GpMatrix matrix);
internal static extern GpStatus GdipGetPenDashCount(GpPen pen, out int count);
extern static internal GpStatus GdipResetPenTransform(GpPen pen);
internal static extern GpStatus GdipGetPenDashStyle(GpPen pen, out DashStyle dashstyle);
extern static internal GpStatus GdipMultiplyPenTransform(GpPen pen, GpMatrix matrix, MatrixOrder order);
internal static extern GpStatus GdipGetPenFillType(GpPen pen, out PenType type);
protected PenPlus(GpPen nativePen, GpStatus status) { lastResult = status; SetNativePen(nativePen); }
internal static extern GpStatus GdipGetPenMiterLimit(GpPen pen, out float miterLimit);
void SetNativePen(GpPen nativePen) { this.nativePen = nativePen; }
internal static extern GpStatus GdipGetPenStartCap(GpPen pen, out LineCap startCap);
GdipDrawClosedCurveI(GpGraphics graphics, GpPen pen, Point[] points, int count);
internal static extern GpStatus GdipGetPenUnit(GpPen pen, out Unit unit);
extern static internal GpStatus GdipDrawLine(GpGraphics graphics, GpPen pen, float x1, float y1, float x2, float y2);
internal static extern GpStatus GdipMultiplyPenTransform(GpPen pen, GpMatrix matrix, MatrixOrder order);
GdipDrawClosedCurve2I(GpGraphics graphics, GpPen pen, Point[] points, int count, float tension);
internal static extern GpStatus GdipRotatePenTransform(GpPen pen, float angle, MatrixOrder order);
extern static internal GpStatus GdipDrawLineI(GpGraphics graphics, GpPen pen, int x1, int y1, int x2, int y2);
internal static extern GpStatus GdipSetPenBrushFill(GpPen pen, GpBrush brush);
extern static internal GpStatus GdipDrawLinesI(GpGraphics graphics, GpPen pen, Point[] points, int count);