Hex.ToRGBAColor

Static Method in Hex

Declaration

public static Color ToRGBAColor(int hex)

Description

Creates a color from a hexadecimal integer in the RGBA format (RRGGBBAA), e.g., 0xffff0080.

Parameters

hexThe hexadecimal integer to convert.

Returns

ColorThe color formed from the hexadecimal integer.

Overload

Declaration

public static Color ToRGBAColor(string hex)

Description

Creates a color from a hexadecimal string in the ARGB format (RRGGBBAA), e.g., "#ffff0080".

Parameters

hexThe hexadecimal string to convert.

Returns

ColorThe color formed from the hexadecimal string.