Table of Contents

Class ColorHSV

Namespace
ImageMagick
Assembly
Magick.NET-Q16-AnyCPU.dll

Class that represents a HSV color.

public sealed class ColorHSV : ColorBase, IEquatable<ColorBase?>, IComparable<ColorBase?>
Inheritance
ColorHSV
Implements
Inherited Members

Constructors

ColorHSV(double, double, double)

Initializes a new instance of the ColorHSV class.

public ColorHSV(double hue, double saturation, double value)

Parameters

hue double

Hue component value of this color.

saturation double

Saturation component value of this color.

value double

Value component value of this color.

Properties

Hue

Gets or sets the hue component value of this color.

public double Hue { get; set; }

Property Value

double

Saturation

Gets or sets the saturation component value of this color.

public double Saturation { get; set; }

Property Value

double

Value

Gets or sets the value component value of this color.

public double Value { get; set; }

Property Value

double

Methods

FromMagickColor(IMagickColor<ushort>)

Converts the specified ImageMagick.IMagickColor<> to an instance of this type.

public static ColorHSV? FromMagickColor(IMagickColor<ushort> color)

Parameters

color IMagickColor<ushort>

The color to use.

Returns

ColorHSV

A ColorHSV instance.

HueShift(double)

Performs a hue shift with the specified degrees.

public void HueShift(double degrees)

Parameters

degrees double

The degrees.

UpdateColor()

Updates the color value in an inherited class.

protected override void UpdateColor()

Operators

explicit operator ColorHSV?(MagickColor)

Converts the specified MagickColor to an instance of this type.

public static explicit operator ColorHSV?(MagickColor color)

Parameters

color MagickColor

The color to use.

Returns

ColorHSV

A ColorHSV instance.