73 references to NativePen
System.Drawing.Common (73)
System\Drawing\Drawing2D\GraphicsPath.cs (1)
283
pen.
NativePen
,
System\Drawing\Graphics.cs (26)
655
pen.
NativePen
,
690
pen.
NativePen
,
745
CheckErrorStatus(PInvokeGdiPlus.GdipDrawRectangle(NativeGraphics, pen.
NativePen
, x, y, width, height));
770
CheckErrorStatus(PInvokeGdiPlus.GdipDrawRectangles(NativeGraphics, pen.
NativePen
, (RectF*)r, rects.Length));
795
CheckErrorStatus(PInvokeGdiPlus.GdipDrawRectanglesI(NativeGraphics, pen.
NativePen
, (Rect*)r, rects.Length));
812
CheckErrorStatus(PInvokeGdiPlus.GdipDrawEllipse(NativeGraphics, pen.
NativePen
, x, y, width, height));
838
CheckErrorStatus(PInvokeGdiPlus.GdipDrawPie(NativeGraphics, pen.
NativePen
, x, y, width, height, startAngle, sweepAngle));
869
CheckErrorStatus(PInvokeGdiPlus.GdipDrawPolygon(NativeGraphics, pen.
NativePen
, (GdiPlus.PointF*)p, points.Length));
894
CheckErrorStatus(PInvokeGdiPlus.GdipDrawPolygonI(NativeGraphics, pen.
NativePen
, (GdiPlus.Point*)p, points.Length));
908
CheckErrorStatus(PInvokeGdiPlus.GdipDrawPath(NativeGraphics, pen.
NativePen
, path._nativePath));
929
CheckErrorStatus(PInvokeGdiPlus.GdipDrawCurve(NativeGraphics, pen.
NativePen
, (GdiPlus.PointF*)p, points.Length));
953
pen.
NativePen
,
989
pen.
NativePen
,
1014
CheckErrorStatus(PInvokeGdiPlus.GdipDrawCurveI(NativeGraphics, pen.
NativePen
, (GdiPlus.Point*)p, points.Length));
1038
pen.
NativePen
,
1071
pen.
NativePen
,
1099
pen.
NativePen
,
1130
pen.
NativePen
,
1155
pen.
NativePen
,
1181
pen.
NativePen
,
2377
CheckErrorStatus(PInvokeGdiPlus.GdipDrawLines(NativeGraphics, pen.
NativePen
, (GdiPlus.PointF*)p, points.Length));
2406
CheckErrorStatus(PInvokeGdiPlus.GdipDrawLinesI(NativeGraphics, pen.
NativePen
, (GdiPlus.Point*)p, points.Length));
2424
CheckErrorStatus(PInvokeGdiPlus.GdipDrawLinesI(NativeGraphics, pen.
NativePen
, (GdiPlus.Point*)p, points.Length));
2784
CheckErrorStatus(PInvokeGdiPlus.GdipDrawLine(NativeGraphics, pen.
NativePen
, x1, y1, x2, y2));
2806
pen.
NativePen
,
2837
pen.
NativePen
,
System\Drawing\Pen.cs (45)
91
PInvokeGdiPlus.GdipClonePen(
NativePen
, &clonedPen).ThrowIfFailed();
121
Status status = !Gdip.Initialized ? Status.Ok : PInvokeGdiPlus.GdipDeletePen(
NativePen
);
140
PInvokeGdiPlus.GdipGetPenWidth(
NativePen
, &width).ThrowIfFailed();
151
PInvokeGdiPlus.GdipSetPenWidth(
NativePen
, value).ThrowIfFailed();
167
NativePen
,
183
PInvokeGdiPlus.GdipGetPenStartCap(
NativePen
, (GdiPlus.LineCap*)&startCap).ThrowIfFailed();
212
PInvokeGdiPlus.GdipSetPenStartCap(
NativePen
, (GdiPlus.LineCap)value).ThrowIfFailed();
225
PInvokeGdiPlus.GdipGetPenEndCap(
NativePen
, (GdiPlus.LineCap*)&endCap).ThrowIfFailed();
254
PInvokeGdiPlus.GdipSetPenEndCap(
NativePen
, (GdiPlus.LineCap)value).ThrowIfFailed();
267
PInvokeGdiPlus.GdipGetPenCustomStartCap(
NativePen
, &lineCap).ThrowIfFailed();
278
PInvokeGdiPlus.GdipSetPenCustomStartCap(
NativePen
, value is null ? null : value._nativeCap).ThrowIfFailed();
292
PInvokeGdiPlus.GdipGetPenCustomEndCap(
NativePen
, &lineCap).ThrowIfFailed();
303
PInvokeGdiPlus.GdipSetPenCustomEndCap(
NativePen
, value is null ? null : value._nativeCap).ThrowIfFailed();
317
PInvokeGdiPlus.GdipGetPenDashCap197819(
NativePen
, (GdiPlus.DashCap*)&dashCap).ThrowIfFailed();
333
PInvokeGdiPlus.GdipSetPenDashCap197819(
NativePen
, (GdiPlus.DashCap)value).ThrowIfFailed();
346
PInvokeGdiPlus.GdipGetPenLineJoin(
NativePen
, (GdiPlus.LineJoin*)&lineJoin).ThrowIfFailed();
362
PInvokeGdiPlus.GdipSetPenLineJoin(
NativePen
, (GdiPlus.LineJoin)value).ThrowIfFailed();
375
PInvokeGdiPlus.GdipGetPenMiterLimit(
NativePen
, &miterLimit).ThrowIfFailed();
386
PInvokeGdiPlus.GdipSetPenMiterLimit(
NativePen
, value).ThrowIfFailed();
399
PInvokeGdiPlus.GdipGetPenMode(
NativePen
, (GdiPlus.PenAlignment*)&penMode).ThrowIfFailed();
415
PInvokeGdiPlus.GdipSetPenMode(
NativePen
, (GdiPlus.PenAlignment)value).ThrowIfFailed();
428
PInvokeGdiPlus.GdipGetPenTransform(
NativePen
, matrix.NativeMatrix).ThrowIfFailed();
441
PInvokeGdiPlus.GdipSetPenTransform(
NativePen
, value.NativeMatrix).ThrowIfFailed();
452
PInvokeGdiPlus.GdipResetPenTransform(
NativePen
).ThrowIfFailed();
474
PInvokeGdiPlus.GdipMultiplyPenTransform(
NativePen
, matrix.NativeMatrix, (GdiPlus.MatrixOrder)order).ThrowIfFailed();
490
PInvokeGdiPlus.GdipTranslatePenTransform(
NativePen
, dx, dy, (GdiPlus.MatrixOrder)order).ThrowIfFailed();
504
PInvokeGdiPlus.GdipScalePenTransform(
NativePen
, sx, sy, (GdiPlus.MatrixOrder)order).ThrowIfFailed();
518
PInvokeGdiPlus.GdipRotatePenTransform(
NativePen
, angle, (GdiPlus.MatrixOrder)order).ThrowIfFailed();
524
PInvokeGdiPlus.GdipSetPenColor(
NativePen
, (uint)_color.ToArgb()).ThrowIfFailed();
537
PInvokeGdiPlus.GdipGetPenFillType(
NativePen
, &type).ThrowIfFailed();
558
PInvokeGdiPlus.GdipGetPenColor(
NativePen
, (uint*)&color).ThrowIfFailed();
634
PInvokeGdiPlus.GdipSetPenBrushFill(
NativePen
, value.Pointer()).ThrowIfFailed();
642
PInvokeGdiPlus.GdipGetPenBrushFill(
NativePen
, &nativeBrush).ThrowIfFailed();
655
PInvokeGdiPlus.GdipGetPenDashStyle(
NativePen
, (GdiPlus.DashStyle*)&dashStyle).ThrowIfFailed();
671
PInvokeGdiPlus.GdipSetPenDashStyle(
NativePen
, (GdiPlus.DashStyle)value).ThrowIfFailed();
695
PInvokeGdiPlus.GdipGetPenDashCount(
NativePen
, &count);
713
PInvokeGdiPlus.GdipGetPenDashOffset(
NativePen
, &dashOffset).ThrowIfFailed();
724
PInvokeGdiPlus.GdipSetPenDashOffset(
NativePen
, value).ThrowIfFailed();
737
PInvokeGdiPlus.GdipGetPenDashCount(
NativePen
, &count).ThrowIfFailed();
748
PInvokeGdiPlus.GdipGetPenDashArray(
NativePen
, p, count).ThrowIfFailed();
784
PInvokeGdiPlus.GdipSetPenDashArray(
NativePen
, f, value.Length).ThrowIfFailed();
798
PInvokeGdiPlus.GdipGetPenCompoundCount(
NativePen
, &count).ThrowIfFailed();
808
PInvokeGdiPlus.GdipGetPenCompoundArray(
NativePen
, f, count).ThrowIfFailed();
823
PInvokeGdiPlus.GdipSetPenCompoundArray(
NativePen
, f, value.Length).ThrowIfFailed();
831
if (
NativePen
is not null)
System\Drawing\PointerExtensions.cs (1)
14
public static GpPen* Pointer(this Pen? pen) => pen is null ? null : pen.
NativePen
;