ColorToHsv(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) Version: 11.3.999
public static HsvColor ToHsv(
	byte red,
	byte green,
	byte blue,
	byte alpha = 255
)

Parameters

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.

Return Value

HsvColor
A new HsvColor equivalent to the given RGBA values.

See Also