ConversionExtensions.ToARGB

Extension Method in ConversionExtensions

Declaration

public static ARGB ToARGB(this Color color)

Description

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

Parameters

colorThe color to convert.

Returns

ARGBThe ARGB components of the color.

Overload

Declaration

public static ARGB ToARGB(this Color color, float alpha)

Description

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

Parameters

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

Returns

ARGBThe ARGB components of the color.