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