39 references to NativeBrush
System.Drawing.Common (39)
System\Drawing\Drawing2D\HatchBrush.cs (4)
34
PInvokeGdiPlus.GdipCloneBrush(
NativeBrush
, &clonedBrush).ThrowIfFailed();
44
PInvokeGdiPlus.GdipGetHatchStyle((GpHatch*)
NativeBrush
, &hatchStyle).ThrowIfFailed();
55
PInvokeGdiPlus.GdipGetHatchForegroundColor((GpHatch*)
NativeBrush
, (uint*)&foregroundArgb).ThrowIfFailed();
66
PInvokeGdiPlus.GdipGetHatchBackgroundColor((GpHatch*)
NativeBrush
, (uint*)&backgroundArgb).ThrowIfFailed();
System\Drawing\Drawing2D\LinearGradientBrush.cs (2)
93
internal GpLineGradient* NativeLineGradient => (GpLineGradient*)
NativeBrush
;
98
PInvokeGdiPlus.GdipCloneBrush(
NativeBrush
, &clonedBrush).ThrowIfFailed();
System\Drawing\Drawing2D\PathGradientBrush.cs (2)
111
internal GpPathGradient* NativePathGradient => (GpPathGradient*)
NativeBrush
;
116
PInvokeGdiPlus.GdipCloneBrush(
NativeBrush
, &clonedBrush).ThrowIfFailed();
System\Drawing\Graphics.cs (14)
1227
brush.
NativeBrush
,
1266
CheckErrorStatus(PInvokeGdiPlus.GdipFillRectangles(NativeGraphics, brush.
NativeBrush
, (RectF*)r, rects.Length));
1288
CheckErrorStatus(PInvokeGdiPlus.GdipFillRectanglesI(NativeGraphics, brush.
NativeBrush
, (Rect*)r, rects.Length));
1320
brush.
NativeBrush
,
1359
brush.
NativeBrush
,
1381
brush.
NativeBrush
,
1430
brush.
NativeBrush
,
1462
brush.
NativeBrush
,
1503
brush.
NativeBrush
,
1530
brush.
NativeBrush
,
1566
brush.
NativeBrush
,
1753
brush.
NativeBrush
));
2855
brush.
NativeBrush
,
2872
brush.
NativeBrush
,
System\Drawing\Pen.cs (1)
71
PInvokeGdiPlus.GdipCreatePen2(brush.
NativeBrush
, width, (int)GraphicsUnit.World, &pen).ThrowIfFailed();
System\Drawing\PointerExtensions.cs (1)
23
public static GpBrush* Pointer(this Brush? brush) => brush is null ? null : brush.
NativeBrush
;
System\Drawing\SolidBrush.cs (4)
39
PInvokeGdiPlus.GdipCloneBrush(
NativeBrush
, &clonedBrush).ThrowIfFailed();
67
PInvokeGdiPlus.GdipGetSolidFillColor((GpSolidFill*)
NativeBrush
, (uint*)&color).ThrowIfFailed();
100
PInvokeGdiPlus.GdipSetSolidFillColor((GpSolidFill*)
NativeBrush
, (ARGB)value).ThrowIfFailed();
107
if (
NativeBrush
is not null)
System\Drawing\TextureBrush.cs (11)
97
PInvokeGdiPlus.GdipCloneBrush(
NativeBrush
, &cloneBrush).ThrowIfFailed();
108
PInvokeGdiPlus.GdipGetTextureTransform((GpTexture*)
NativeBrush
, matrix.NativeMatrix).ThrowIfFailed();
115
PInvokeGdiPlus.GdipSetTextureTransform((GpTexture*)
NativeBrush
, value.NativeMatrix).ThrowIfFailed();
125
PInvokeGdiPlus.GdipGetTextureWrapMode((GpTexture*)
NativeBrush
, &mode).ThrowIfFailed();
136
PInvokeGdiPlus.GdipSetTextureWrapMode((GpTexture*)
NativeBrush
, (WrapMode)value).ThrowIfFailed();
146
PInvokeGdiPlus.GdipGetTextureImage((GpTexture*)
NativeBrush
, &image).ThrowIfFailed();
154
PInvokeGdiPlus.GdipResetTextureTransform((GpTexture*)
NativeBrush
).ThrowIfFailed();
170
(GpTexture*)
NativeBrush
,
183
(GpTexture*)
NativeBrush
,
195
(GpTexture*)
NativeBrush
,
207
(GpTexture*)
NativeBrush
,