Class HsvColor
Structure describes HSV color.
Inheritance
System.Object
HsvColor
Namespace: Syncfusion.Windows.Shared
Assembly: Syncfusion.Shared.WPF.dll
Syntax
public sealed class HsvColor : ValueType
Constructors
HsvColor(Double, Double, Double)
Initializes a new instance of the HsvColor struct.
Declaration
public HsvColor(double h, double s, double v)
Parameters
Type | Name | Description |
---|---|---|
System.Double | h | The hue value. |
System.Double | s | The saturation. |
System.Double | v | The brightness. |
Fields
H
Hue parameter.
Declaration
public double H
Field Value
Type |
---|
System.Double |
S
Saturation parameter.
Declaration
public double S
Field Value
Type |
---|
System.Double |
V
Brightness parameter.
Declaration
public double V
Field Value
Type |
---|
System.Double |
Methods
ConvertHsvToRgb(Double, Double, Double)
Converts HSV color to RGB color.
Declaration
public static Color ConvertHsvToRgb(double h, double s, double v)
Parameters
Type | Name | Description |
---|---|---|
System.Double | h | The H parameter. |
System.Double | s | The S parameter. |
System.Double | v | The V parameter. |
Returns
Type | Description |
---|---|
System.Windows.Media.Color | RGB color. |
ConvertRgbToHsv(Int32, Int32, Int32)
Converts RGB color to HSV color.
Declaration
public static HsvColor ConvertRgbToHsv(int r, int b, int g)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | r | The R parameter. |
System.Int32 | b | The B parameter. |
System.Int32 | g | The G parameter. |
Returns
Type | Description |
---|---|
HsvColor | HSV color. |