Partager via


ColorObject.RGBToHSV(Int32, Int32, Int32, Single[]) Method

Definition

Convert RGB components to HSV.

[Android.Runtime.Register("RGBToHSV", "(III[F)V", "")]
public static void RGBToHSV (int red, int green, int blue, float[]? hsv);
[<Android.Runtime.Register("RGBToHSV", "(III[F)V", "")>]
static member RGBToHSV : int * int * int * single[] -> unit

Parameters

red
Int32

red component value ([0..255])

green
Int32

green component value ([0..255])

blue
Int32

blue component value ([0..255])

hsv
Single[]

3 element array which holds the resulting HSV components.

Attributes

Remarks

Convert RGB components to HSV. <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.RGBToHSV(int, int, 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