5 writes to _nativePath
System.Drawing.Common (5)
System\Drawing\Drawing2D\GraphicsPath.cs (5)
23
_nativePath
= path;
53
_nativePath
= path;
89
_nativePath
= path;
106
_nativePath
= nativePath;
135
_nativePath
= null;
57 references to _nativePath
System.Drawing.Common (57)
System\Drawing\Drawing2D\GraphicsPath.cs (46)
96
PInvokeGdiPlus.GdipClonePath(
_nativePath
, &path).ThrowIfFailed();
117
if (
_nativePath
is not null)
124
PInvokeGdiPlus.GdipDeletePath(
_nativePath
);
144
PInvokeGdiPlus.GdipResetPath(
_nativePath
).ThrowIfFailed();
153
PInvokeGdiPlus.GdipGetPathFillMode(
_nativePath
, &fillMode).ThrowIfFailed();
162
PInvokeGdiPlus.GdipSetPathFillMode(
_nativePath
, (GdiPlus.FillMode)value).ThrowIfFailed();
192
PInvokeGdiPlus.GdipGetPathData(
_nativePath
, (GdiPlus.PathData*)&data).ThrowIfFailed();
202
PInvokeGdiPlus.GdipStartPathFigure(
_nativePath
);
208
PInvokeGdiPlus.GdipClosePathFigure(
_nativePath
).ThrowIfFailed();
214
PInvokeGdiPlus.GdipClosePathFigures(
_nativePath
).ThrowIfFailed();
220
PInvokeGdiPlus.GdipSetPathMarker(
_nativePath
).ThrowIfFailed();
226
PInvokeGdiPlus.GdipClearPathMarkers(
_nativePath
).ThrowIfFailed();
232
PInvokeGdiPlus.GdipReversePath(
_nativePath
).ThrowIfFailed();
239
PInvokeGdiPlus.GdipGetPathLastPoint(
_nativePath
, (GdiPlus.PointF*)&point);
252
_nativePath
,
281
_nativePath
,
307
PInvokeGdiPlus.GdipAddPathLine(
_nativePath
, x1, y1, x2, y2).ThrowIfFailed();
341
PInvokeGdiPlus.GdipAddPathLine2(
_nativePath
, (GdiPlus.PointF*)p, points.Length).ThrowIfFailed();
368
PInvokeGdiPlus.GdipAddPathLine2I(
_nativePath
, (GdiPlus.Point*)p, points.Length).ThrowIfFailed();
378
PInvokeGdiPlus.GdipAddPathArc(
_nativePath
, x, y, width, height, startAngle, sweepAngle).ThrowIfFailed();
393
PInvokeGdiPlus.GdipAddPathBezier(
_nativePath
, x1, y1, x2, y2, x3, y3, x4, y4).ThrowIfFailed();
413
PInvokeGdiPlus.GdipAddPathBeziers(
_nativePath
, (GdiPlus.PointF*)p, points.Length).ThrowIfFailed();
440
PInvokeGdiPlus.GdipAddPathBeziersI(
_nativePath
, (GdiPlus.Point*)p, points.Length).ThrowIfFailed();
470
_nativePath
,
497
_nativePath
,
518
_nativePath
,
545
_nativePath
,
575
PInvokeGdiPlus.GdipAddPathClosedCurve2(
_nativePath
, (GdiPlus.PointF*)p, points.Length, tension).ThrowIfFailed();
605
PInvokeGdiPlus.GdipAddPathClosedCurve2I(
_nativePath
, (GdiPlus.Point*)p, points.Length, tension).ThrowIfFailed();
613
_nativePath
,
634
PInvokeGdiPlus.GdipAddPathRectangles(
_nativePath
, (RectF*)r, rects.Length).ThrowIfFailed();
654
PInvokeGdiPlus.GdipAddPathRectanglesI(
_nativePath
, (Rect*)r, rects.Length).ThrowIfFailed();
705
PInvokeGdiPlus.GdipAddPathEllipse(
_nativePath
, x, y, width, height).ThrowIfFailed();
719
_nativePath
,
743
PInvokeGdiPlus.GdipAddPathPolygon(
_nativePath
, (GdiPlus.PointF*)p, points.Length).ThrowIfFailed();
764
PInvokeGdiPlus.GdipAddPathPolygonI(
_nativePath
, (GdiPlus.Point*)p, points.Length).ThrowIfFailed();
772
PInvokeGdiPlus.GdipAddPathPath(
_nativePath
, addingPath.Pointer(), connect).ThrowIfFailed();
791
_nativePath
,
811
PInvokeGdiPlus.GdipTransformPath(
_nativePath
, matrix.NativeMatrix).ThrowIfFailed();
824
_nativePath
,
841
PInvokeGdiPlus.GdipFlattenPath(
_nativePath
, matrix.Pointer(), flatness).ThrowIfFailed();
858
PInvokeGdiPlus.GdipWidenPath(
_nativePath
, pen.Pointer(), matrix.Pointer(), flatness).ThrowIfFailed();
912
_nativePath
,
929
PInvokeGdiPlus.GdipGetPointCount(
_nativePath
, &count).ThrowIfFailed();
974
PInvokeGdiPlus.GdipGetPathTypes(
_nativePath
, t, destination.Length).ThrowIfFailed();
1019
PInvokeGdiPlus.GdipGetPathPoints(
_nativePath
, (GdiPlus.PointF*)p, destination.Length).ThrowIfFailed();
System\Drawing\Drawing2D\PathGradientBrush.cs (1)
101
PInvokeGdiPlus.GdipCreatePathGradientFromPath(path.
_nativePath
, &nativeBrush).ThrowIfFailed();
System\Drawing\Graphics.cs (3)
540
CheckStatus(PInvokeGdiPlus.GdipSetClipPath(NativeGraphics, path.
_nativePath
, (GdiPlus.CombineMode)combineMode));
908
CheckErrorStatus(PInvokeGdiPlus.GdipDrawPath(NativeGraphics, pen.NativePen, path.
_nativePath
));
2856
path.
_nativePath
));
System\Drawing\PointerExtensions.cs (1)
22
public static GpPath* Pointer(this Drawing2D.GraphicsPath? path) => path is null ? null : path.
_nativePath
;
System\Drawing\Region.cs (6)
38
CheckStatus(PInvokeGdiPlus.GdipCreateRegionPath(path.
_nativePath
, ®ion));
117
CheckStatus(PInvokeGdiPlus.GdipCombineRegionPath(NativeRegion, path.
_nativePath
, GdiPlus.CombineMode.CombineModeIntersect));
136
CheckStatus(PInvokeGdiPlus.GdipCombineRegionPath(NativeRegion, path.
_nativePath
, GdiPlus.CombineMode.CombineModeUnion));
155
CheckStatus(PInvokeGdiPlus.GdipCombineRegionPath(NativeRegion, path.
_nativePath
, GdiPlus.CombineMode.CombineModeXor));
174
CheckStatus(PInvokeGdiPlus.GdipCombineRegionPath(NativeRegion, path.
_nativePath
, GdiPlus.CombineMode.CombineModeExclude));
193
CheckStatus(PInvokeGdiPlus.GdipCombineRegionPath(NativeRegion, path.
_nativePath
, GdiPlus.CombineMode.CombineModeComplement));