ColorObject.HSVToColor Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
HSVToColor(Single[]) |
Convert HSV components to an ARGB color. |
HSVToColor(Int32, Single[]) |
Convert HSV components to an ARGB color. |
HSVToColor(Single[])
Convert HSV components to an ARGB color.
[Android.Runtime.Register("HSVToColor", "([F)I", "")]
public static int HSVToColor (float[]? hsv);
[<Android.Runtime.Register("HSVToColor", "([F)I", "")>]
static member HSVToColor : single[] -> int
Parameters
- hsv
- Single[]
3 element array which holds the input HSV components.
Returns
the resulting argb color
- Attributes
Remarks
Convert HSV components to an ARGB color. Alpha set to 0xFF. <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> If hsv values are out of range, they are pinned.
Java documentation for android.graphics.Color.HSVToColor(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
HSVToColor(Int32, Single[])
Convert HSV components to an ARGB color.
[Android.Runtime.Register("HSVToColor", "(I[F)I", "")]
public static int HSVToColor (int alpha, float[]? hsv);
[<Android.Runtime.Register("HSVToColor", "(I[F)I", "")>]
static member HSVToColor : int * single[] -> int
Parameters
- alpha
- Int32
the alpha component of the returned argb color.
- hsv
- Single[]
3 element array which holds the input HSV components.
Returns
the resulting argb color
- Attributes
Remarks
Convert HSV components to an ARGB color. The alpha component is passed through unchanged. <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> If hsv values are out of range, they are pinned.
Java documentation for android.graphics.Color.HSVToColor(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.