Struct HsvColor
Structure describes HSV color.
Inherited Members
      System.Object.Equals(System.Object, System.Object)
    
      System.Object.GetType()
    
      System.Object.ReferenceEquals(System.Object, System.Object)
    
      System.ValueType.Equals(System.Object)
    
      System.ValueType.GetHashCode()
    
      System.ValueType.ToString()
    
Namespace: Syncfusion.Windows.Shared
Assembly: Syncfusion.Shared.WPF.dll
Syntax
public struct HsvColorConstructors
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 HField Value
| Type | 
|---|
| System.Double | 
S
Saturation parameter.
Declaration
public double SField Value
| Type | 
|---|
| System.Double | 
V
Brightness parameter.
Declaration
public double VField 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. |