Skip to main content

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)

public static HsvColor ToHsv(
byte red,
byte green,
byte blue,
byte alpha = 255
)

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.

See Also

Reference

Color Structure
ToHsv Overload
Avalonia.Media Namespace