Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Definition
Namespace: Microsoft.CommandPalette.Extensions.Toolkit
The FromArgb method creates a color from the specified ARGB values. This is useful when you want to specify a color using its alpha, red, green, and blue components.
Parameters
a Byte
The alpha component of the color. This value should be between 0
and 255
, where 0
is fully transparent and 255
is fully opaque.
r Byte
The red component of the color. This value should be between 0
and 255
.
g Byte
The green component of the color. This value should be between 0
and 255
.
b Byte
The blue component of the color. This value should be between 0
and 255
.
Returns
An OptionalColor object that represents the color created from the specified ARGB values. This object can be used in various UI elements, such as command items and icons, to specify the color of the element.
Windows developer