Table of Contents

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

newSaturation double

The new saturation.

newValue double

The new value component of the hsv color

Returns

Color

GetVariationByHue(float)

Gets a variation over the current color with the specified newHue.

public Color GetVariationByHue(float newHue)

Parameters

newHue float

The newHue.

Returns

Color

GetVariationBySaturation(double)

Gets a variation over the current color with the specified newSaturation.

public Color GetVariationBySaturation(double newSaturation)

Parameters

newSaturation double

The newSaturation.

Returns

Color

GetVariationByValue(double)

Gets a variation over the current color with the specified value.

public Color GetVariationByValue(double newValue)

Parameters

newValue double

The new value component of the hsv color.

Returns

Color
To top