HsvColor Struct
Definition
Defines a color using the hue/saturation/value (HSV) model. This uses a cylindrical-coordinate representation of a color.
public struct HsvColor
Constructors
| Name | Description |
|---|---|
| HsvColor (2 overloads) | Initializes a new instance of the Avalonia.Media.HsvColor struct. |
HsvColor overloads
HsvColor Constructor
Initializes a new instance of the Avalonia.Media.HsvColor struct.
public HsvColor(Avalonia.Media.Color color)
Parameters
color Avalonia.Media.Color
The RGB color to convert to HSV.
HsvColor Constructor
Initializes a new instance of the Avalonia.Media.HsvColor struct.
public HsvColor(double alpha, double hue, double saturation, double value)
Parameters
alpha double
The Alpha (transparency) component in the range from 0..1.
hue double
The Hue component in the range from 0..360. Note that 360 is equivalent to 0 and will be adjusted automatically.
saturation double
The Saturation component in the range from 0..1.
value double
The Value component in the range from 0..1.
Methods
| Name | Description |
|---|---|
| Equals (2 overloads) | No summary available. |
| FromAhsv | Creates a new Avalonia.Media.HsvColor from individual color component values. |
| FromHsv | Creates a new Avalonia.Media.HsvColor from individual color component values. |
| GetHashCode | Gets a hashcode for this object. Hashcode is not guaranteed to be unique. |
| Parse | Parses an HSV color string. |
| ToHsl (2 overloads) | Returns the HSL color model equivalent of this HSV color. |
| ToRgb (2 overloads) | Returns the RGB color model equivalent of this HSV color. |
| ToString | No summary available. |
| TryParse | No summary available. |