Share via


ColorObject.Blue Method

Definition

Overloads

Blue(Int64)

Returns the blue component encoded in the specified color long.

Blue()

Returns the value of the blue component in the range defined by this color's color space (see ColorSpace#getMinValue(int) and ColorSpace#getMaxValue(int)).

Blue(Color)

Return the blue component of a color int.

Blue(Int64)

Returns the blue component encoded in the specified color long.

[Android.Runtime.Register("blue", "(J)F", "", ApiSince=26)]
public static float Blue (long color);
[<Android.Runtime.Register("blue", "(J)F", "", ApiSince=26)>]
static member Blue : int64 -> single

Parameters

color
Int64

The color long whose blue channel to extract

Returns

A float value with a range defined by the specified color's color space

Attributes

Remarks

Returns the blue component encoded in the specified color long. The range of the returned value depends on the color space associated with the specified color. The color space can be queried by calling #colorSpace(long).

Java documentation for android.graphics.Color.blue(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

Blue()

Returns the value of the blue component in the range defined by this color's color space (see ColorSpace#getMinValue(int) and ColorSpace#getMaxValue(int)).

[Android.Runtime.Register("blue", "()F", "GetBlueHandler", ApiSince=26)]
public virtual float Blue ();
[<Android.Runtime.Register("blue", "()F", "GetBlueHandler", ApiSince=26)>]
abstract member Blue : unit -> single
override this.Blue : unit -> single

Returns

Attributes

Remarks

Returns the value of the blue component in the range defined by this color's color space (see ColorSpace#getMinValue(int) and ColorSpace#getMaxValue(int)).

If this color's color model is not ColorSpace.Model#RGB RGB, calling this method is equivalent to getComponent(2).

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

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

Blue(Color)

Return the blue component of a color int.

[Android.Runtime.Register("blue", "(I)I", "")]
public static int Blue (Android.Graphics.Color color);
[<Android.Runtime.Register("blue", "(I)I", "")>]
static member Blue : Android.Graphics.Color -> int

Parameters

color
Color

Returns

Attributes

Remarks

Return the blue component of a color int. This is the same as saying color & 0xFF

Java documentation for android.graphics.Color.blue(int).

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