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

hexThe hexadecimal integer to convert.

Returns

ColorThe 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

hexThe hexadecimal string to convert.

Returns

ColorThe color formed from the hexadecimal string.