Lingua

Color.GetAlphaComponent(Int32) Method

Definition

Extracts the alpha (opacity) component from a packed ARGB color integer, where 0 is fully transparent and 255 is fully opaque.

public static int GetAlphaComponent(int color);
static member GetAlphaComponent : int -> int

Parameters

color
Int32

A packed ARGB color integer, such as the value returned by ToArgb().

Returns

The alpha component of color, in the range 0–255.

Remarks

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to