ToHsv(Byte, Byte, Byte, Byte) Method
Converts the given RGBA color component values to their HSV color equivalent.
Definition
Namespace: Avalonia.Media
Assembly: Avalonia.Base (in Avalonia.Base.dll)
- C#
- VB
- F#
public static HsvColor ToHsv(
byte red,
byte green,
byte blue,
byte alpha = 255
)
Public Shared Function ToHsv (
red As Byte,
green As Byte,
blue As Byte,
Optional alpha As Byte = 255
) As HsvColor
static member ToHsv :
red : byte *
green : byte *
blue : byte *
?alpha : byte
(* Defaults:
let _alpha = defaultArg alpha 255
*)
-> HsvColor
Parameters
- Byte
- The Red component in the RGB color model.
- Byte
- The Green component in the RGB color model.
- Byte
- The Blue component in the RGB color model.
- Byte (Optional)
- The Alpha component.
Return Value
HsvColor
A new HsvColor equivalent to the given RGBA values.