2 instantiations of ARGB
System.Private.Windows.Core (2)
Windows\Win32\Graphics\Gdi\ARGB.cs (2)
40
public static implicit operator ARGB(in Color color) =>
new
((uint)color.ToArgb());
41
public static implicit operator ARGB(uint color) =>
new
(color);
25 references to ARGB
System.Private.Windows.Core (12)
Windows\Win32\Graphics\Gdi\ARGB.cs (6)
40
public static implicit operator
ARGB
(in Color color) => new((uint)color.ToArgb());
41
public static implicit operator
ARGB
(uint color) => new(color);
42
public static implicit operator Color(
ARGB
argb) => Color.FromArgb((int)argb.Value);
43
public static implicit operator uint(
ARGB
argb) => argb.Value;
45
public static Color[] ToColorArray(params ReadOnlySpan<
ARGB
> argbColors)
57
ToColorArray(MemoryMarshal.Cast<uint,
ARGB
>(argbColors));
Windows\Win32\Graphics\Gdi\ArgbBuffer.cs (6)
9
/// Buffer for <see cref="
ARGB
"/> values. Uses the stack for buffer sizes up to 16. Use in a <see langword="using"/>
19
private BufferScope<
ARGB
> _bufferScope;
25
_bufferScope = new BufferScope<
ARGB
>(new Span<
ARGB
>(s, StackSpace), length);
38
ref Unsafe.As<
ARGB
, uint>(ref _bufferScope.GetPinnableReference());
40
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)
299
ReadOnlySpan<
ARGB
> colors = new((
ARGB
*)data.Scan0, width * height);
305
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;
165
ARGB
light = SystemColors.ControlLight;
166
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)