Język

Color.HSVToColor Method

Definition

Overloads

Name Description
HSVToColor(Int32, Single[])

Creates a managed color from HSV components and an alpha value.

HSVToColor(Single[])

Creates an opaque managed color from HSV components.

HSVToColor(Int32, Single[])

Creates a managed color from HSV components and an alpha value.

public static Android.Graphics.Color HSVToColor(int alpha, float[] hsv);
static member HSVToColor : int * single[] -> Android.Graphics.Color

Parameters

alpha
Int32

The alpha byte value for the result, from zero to 255.

hsv
Single[]

At least three input elements in hue, saturation, value order. Hue is in degrees; saturation and value use the interval from zero to one.

Returns

The converted RGB color with the specified alpha byte.

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

HSVToColor(Single[])

Creates an opaque managed color from HSV components.

public static Android.Graphics.Color HSVToColor(float[] hsv);
static member HSVToColor : single[] -> Android.Graphics.Color

Parameters

hsv
Single[]

At least three input elements in hue, saturation, value order. Hue is in degrees; saturation and value use the interval from zero to one.

Returns

The converted RGB color with an alpha byte of 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