ColorObject.Green Method

Definition

Overloads

Green()

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

Green(Color)

Return the green component of a color int.

Green(Int64)

Returns the green component encoded in the specified color long.

Green()

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

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

Returns

Attributes

Remarks

Returns the value of the green 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(1).

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

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

Green(Color)

Return the green component of a color int.

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

Parameters

color
Color

Returns

Attributes

Remarks

Return the green component of a color int. This is the same as saying (color >> 8) & 0xFF

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

Green(Int64)

Returns the green component encoded in the specified color long.

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

Parameters

color
Int64

The color long whose green channel to extract

Returns

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

Attributes

Remarks

Returns the green 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.green(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