ConversionExtensions.ToARGB255

Extension Method in ConversionExtensions

Declaration

public static ARGB255 ToARGB255(this Color color)

Description

Converts the color to ARGB (alpha, red, green, blue) components in the range [0..255].

Parameters

colorThe color to convert.

Returns

ARGB255The ARGB components of the color.

Overload

Declaration

public static ARGB255 ToARGB255(this Color color, int alpha)

Description

Converts the color to ARGB (alpha, red, green, blue) components in the range [0..255].

Parameters

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

Returns

ARGB255The ARGB components of the color.