Megosztás a következőn keresztül:


Color Constructors

Definition

Overloads

Color(Int32)

Initializes a new instance of the Color struct.

Color(Byte, Byte, Byte)

Initializes a new instance of the Color struct.

Color(Int32, Int32, Int32)

Initializes a new instance of the Color struct.

Color(Byte, Byte, Byte, Byte)

Initializes a new instance of the Color struct.

Color(Int32, Int32, Int32, Int32)

Initializes a new instance of the Color struct.

Color(Int32)

Initializes a new instance of the Color struct.

public Color (int argb);
new Android.Graphics.Color : int -> Android.Graphics.Color

Parameters

argb
Int32

An integer representation of a color (ARGB).

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

Color(Byte, Byte, Byte)

Initializes a new instance of the Color struct.

public Color (byte r, byte g, byte b);
new Android.Graphics.Color : byte * byte * byte -> Android.Graphics.Color

Parameters

r
Byte

The red component.

g
Byte

The green component.

b
Byte

The blue component.

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

Color(Int32, Int32, Int32)

Initializes a new instance of the Color struct.

public Color (int r, int g, int b);
new Android.Graphics.Color : int * int * int -> Android.Graphics.Color

Parameters

r
Int32

The red component. (0-255)

g
Int32

The green component. (0-255)

b
Int32

The blue component. (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

Color(Byte, Byte, Byte, Byte)

Initializes a new instance of the Color struct.

public Color (byte r, byte g, byte b, byte a);
new Android.Graphics.Color : byte * byte * byte * byte -> Android.Graphics.Color

Parameters

r
Byte

The red component.

g
Byte

The green component.

b
Byte

The blue component.

a
Byte

The alpha component.

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

Color(Int32, Int32, Int32, Int32)

Initializes a new instance of the Color struct.

public Color (int r, int g, int b, int a);
new Android.Graphics.Color : int * int * int * int -> Android.Graphics.Color

Parameters

r
Int32

The red component. (0-255)

g
Int32

The green component. (0-255)

b
Int32

The blue component. (0-255)

a
Int32

The alpha component. (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