2 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);
12 references to ARGB
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]);