Class Hsv
- Namespace
- Dynamicweb.Imaging.Colors
- Assembly
- Dynamicweb.Core.dll
Representation of HSV color space
public class Hsv
- Inheritance
-
Hsv
- Inherited Members
Properties
Color
Gets the color.
public Color Color { get; }
Property Value
- Color
The color.
Hue
Gets the newHue in degrees of the hsv color representation. 0-360
public float Hue { get; }
Property Value
- float
The newHue. 0-360
Saturation
Gets the newSaturation index of the hsv color representation. 0-100
public double Saturation { get; }
Property Value
- double
The newSaturation. 0-1
Value
Gets the value index of the hsv color representation. 0-100
public double Value { get; }
Property Value
- double
The value. 0-1
Methods
GetVariation(double, double)
Gets a variation over the current color with the specified newSaturation and value.
public Color GetVariation(double newSaturation, double newValue)
Parameters
Returns
GetVariationByHue(float)
Gets a variation over the current color with the specified newHue.
public Color GetVariationByHue(float newHue)
Parameters
newHuefloatThe newHue.
Returns
GetVariationBySaturation(double)
Gets a variation over the current color with the specified newSaturation.
public Color GetVariationBySaturation(double newSaturation)
Parameters
newSaturationdoubleThe newSaturation.
Returns
GetVariationByValue(double)
Gets a variation over the current color with the specified value.
public Color GetVariationByValue(double newValue)
Parameters
newValuedoubleThe new value component of the hsv color.