ColorObject.ToArgb Method

Definition

Overloads

ToArgb()

Converts this color to an ARGB color int.

ToArgb(Int64)

Converts the specified color long to an ARGB color int.

ToArgb()

Converts this color to an ARGB color int.

[Android.Runtime.Register("toArgb", "()I", "GetToArgbHandler", ApiSince=26)]
public virtual int ToArgb ();
[<Android.Runtime.Register("toArgb", "()I", "GetToArgbHandler", ApiSince=26)>]
abstract member ToArgb : unit -> int
override this.ToArgb : unit -> int

Returns

An ARGB color in the sRGB color space

Attributes

Remarks

Converts this color to an ARGB color int. A color int is always in the ColorSpace.Named#SRGB sRGB color space. This implies a color space conversion is applied if needed.

Java documentation for android.graphics.Color.toArgb().

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

ToArgb(Int64)

Converts the specified color long to an ARGB color int.

[Android.Runtime.Register("toArgb", "(J)I", "", ApiSince=26)]
public static int ToArgb (long color);
[<Android.Runtime.Register("toArgb", "(J)I", "", ApiSince=26)>]
static member ToArgb : int64 -> int

Parameters

color
Int64

Returns

An ARGB color in the sRGB color space

Attributes

Remarks

Converts the specified color long to an ARGB color int. A color int is always in the ColorSpace.Named#SRGB sRGB color space. This implies a color space conversion is applied if needed.

Java documentation for android.graphics.Color.toArgb(long).

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