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

colorThe color to convert.

Returns

RGBA255The 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

colorThe color to convert.
alphaThe alpha component in the range [0..255].

Returns

RGBA255The RGBA components of the color.