ColorToHsv(Byte, Byte, Byte, Byte) Method
Converts the given RGBA color component values to their HSV color equivalent.
Namespace: Avalonia.MediaAssembly: Avalonia.Base (in Avalonia.Base.dll) Version: 11.3.999
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
- red Byte
- The Red component in the RGB color model.
- green Byte
- The Green component in the RGB color model.
- blue Byte
- The Blue component in the RGB color model.
- alpha Byte (Optional)
- The Alpha component.
HsvColorA new
HsvColor equivalent to the given RGBA values.