Språk

Color.Argb(Int32, Int32, Int32, Int32) Method

Definition

Builds a color by packing alpha, red, green, and blue integers.

public static Android.Graphics.Color Argb(int alpha, int red, int green, int blue);
static member Argb : int * int * int * int -> Android.Graphics.Color

Parameters

alpha
Int32

The alpha byte value, from zero to 255.

red
Int32

The red byte value, from zero to 255.

green
Int32

The green byte value, from zero to 255.

blue
Int32

The blue byte value, from zero to 255.

Returns

The packed color. Inputs are combined with bit shifts and are not range-checked.

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