ConversionExtensions.ToRGBA255
Extension Method in ConversionExtensions
Declaration
public static RGBA255 ToRGBA255(this Color color)
Description
Converts the color to RGBA (red, green, blue, alpha) components in the range [0..255].
Parameters
color | The color to convert. |
Returns
RGBA255 | The RGBA components of the color. |
Overload
Declaration
public static RGBA255 ToRGBA255(this Color color, int alpha)
Description
Converts the color to RGBA (red, green, blue, alpha) components in the range [0..255].
Parameters
color | The color to convert. |
alpha | The alpha component in the range [0..255]. |
Returns
RGBA255 | The RGBA components of the color. |