4 instantiations of ARGB
System.Private.Windows.Core (2)
Windows\Win32\Graphics\Gdi\ARGB.cs (2)
42
public static implicit operator ARGB(in Color color) =>
new
((uint)color.ToArgb());
43
public static implicit operator ARGB(uint color) =>
new
(color);
System.Windows.Forms.Primitives.Tests (2)
Interop\GdiPlus\ARGBTests.cs (2)
19
ARGB fromValue =
new
(value);
24
ARGB fromBytes =
new
(a, r, g, b);
50 references to ARGB
System.Drawing.Common (22)
System\Drawing\Drawing2D\HatchBrush.cs (4)
21
PInvokeGdiPlus.GdipCreateHatchBrush((GdiPlus.HatchStyle)hatchstyle, (
ARGB
)foreColor, (
ARGB
)backColor, &nativeBrush).ThrowIfFailed();
54
ARGB
foregroundArgb;
65
ARGB
backgroundArgb;
System\Drawing\Drawing2D\LinearGradientBrush.cs (4)
40
(
ARGB
)color1,
41
(
ARGB
)color2,
67
(
ARGB
)color1,
68
(
ARGB
)color2,
System\Drawing\Drawing2D\PathGradientBrush.cs (2)
125
ARGB
argb;
132
PInvokeGdiPlus.GdipSetPathGradientCenterColor(NativePathGradient, (
ARGB
)value).ThrowIfFailed();
System\Drawing\Imaging\ColorPalette.cs (2)
70
new((int)buffer[0],
ARGB
.ToColorArray(buffer.Slice(2, (int)buffer[1])));
80
buffer[i + 2] = (
ARGB
)Entries[i];
System\Drawing\Imaging\ImageAttributes.cs (6)
361
using BufferScope<(
ARGB
,
ARGB
)> buffer = new(stackBuffer, map.Length);
386
using BufferScope<(
ARGB
,
ARGB
)> buffer = new(stackBuffer, map.Length);
410
internal (
ARGB
,
ARGB
) _element0;
System\Drawing\Pen.cs (1)
557
ARGB
color;
System\Drawing\SolidBrush.cs (3)
19
PInvokeGdiPlus.GdipCreateSolidFill((
ARGB
)_color, &nativeBrush).ThrowIfFailed();
66
ARGB
color;
100
PInvokeGdiPlus.GdipSetSolidFillColor((GpSolidFill*)NativeBrush, (
ARGB
)value).ThrowIfFailed();
System.Private.Windows.Core (12)
Windows\Win32\Graphics\Gdi\ARGB.cs (6)
42
public static implicit operator
ARGB
(in Color color) => new((uint)color.ToArgb());
43
public static implicit operator
ARGB
(uint color) => new(color);
44
public static implicit operator Color(
ARGB
argb) => Color.FromArgb((int)argb.Value);
45
public static implicit operator uint(
ARGB
argb) => argb.Value;
47
public static Color[] ToColorArray(params ReadOnlySpan<
ARGB
> argbColors)
60
ref Unsafe.As<uint,
ARGB
>(ref MemoryMarshal.GetReference(argbColors)),
Windows\Win32\Graphics\Gdi\ArgbBuffer.cs (6)
10
/// Buffer for <see cref="
ARGB
"/> values. Uses the stack for buffer sizes up to 16. Use in a <see langword="using"/>
20
private BufferScope<
ARGB
> _bufferScope;
26
_bufferScope = new BufferScope<
ARGB
>(new Span<
ARGB
>(s, StackSpace), length);
39
ref Unsafe.As<
ARGB
, uint>(ref _bufferScope.GetPinnableReference());
41
public readonly Color[] ToColorArray(int length) =>
ARGB
.ToColorArray(_bufferScope[..length]);
System.Windows.Forms (9)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\DropDownButton.DropDownButtonAdapter.cs (1)
76
Color c = (
ARGB
)SystemColors.Window;
System\Windows\Forms\Rendering\ControlPaint.cs (3)
271
ReadOnlySpan<
ARGB
> colors = new((
ARGB
*)data.Scan0, width * height);
277
ARGB
color = colors[y * width + x];
System\Windows\Forms\Rendering\ControlPaint.HLSColor.cs (5)
31
ARGB
argb = color;
111
ARGB
dark = SystemColors.ControlDark;
112
ARGB
darkDark = SystemColors.ControlDarkDark;
162
ARGB
light = SystemColors.ControlLight;
163
ARGB
lightLight = SystemColors.ControlLightLight;
System.Windows.Forms.Primitives (4)
System\Windows\Forms\SystemDrawingExtensions.cs (4)
71
ARGB
argb1 = color1;
72
ARGB
argb2 = color2;
86
ARGB
argb = color;
100
? new Pen((
ARGB
)color)
System.Windows.Forms.Primitives.Tests (3)
Interop\GdiPlus\ARGBTests.cs (3)
19
ARGB
fromValue = new(value);
24
ARGB
fromBytes = new(a, r, g, b);
32
ARGB
argb = color;