Freigeben über


ColorObject.ColorToHSV(Color, Single[]) Method

Definition

Convert the ARGB color to its HSV components.

[Android.Runtime.Register("colorToHSV", "(I[F)V", "")]
public static void ColorToHSV (Android.Graphics.Color color, float[]? hsv);
[<Android.Runtime.Register("colorToHSV", "(I[F)V", "")>]
static member ColorToHSV : Android.Graphics.Color * single[] -> unit

Parameters

color
Color

the argb color to convert. The alpha component is ignored.

hsv
Single[]

3 element array which holds the resulting HSV components.

Attributes

Remarks

Convert the ARGB color to its HSV components. <ul> <li>hsv[0] is Hue \([0..360[\)</li> <li>hsv[1] is Saturation \([0...1]\)</li> <li>hsv[2] is Value \([0...1]\)</li> </ul>

Java documentation for android.graphics.Color.colorToHSV(int, float[]).

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