Hex.ToARGBColor
Static Method in Hex
Declaration
public static Color ToARGBColor(int hex)
Description
Creates a color from a hexadecimal integer in the ARGB format (AARRGGBB), e.g., 0x80ffff00.
Parameters
hex | The hexadecimal integer to convert. |
Returns
Color | The color formed from the hexadecimal integer. |
Overload
Declaration
public static Color ToARGBColor(string hex)
Description
Creates a color from a hexadecimal string in the ARGB format (AARRGGBB), e.g., "#80ffff00".
Parameters
hex | The hexadecimal string to convert. |
Returns
Color | The color formed from the hexadecimal string. |