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
huedoubleHue component value of this color.
saturationdoubleSaturation component value of this color.
valuedoubleValue component value of this color.
Properties
Hue
Gets or sets the hue component value of this color.
public double Hue { get; set; }
Property Value
Saturation
Gets or sets the saturation component value of this color.
public double Saturation { get; set; }
Property Value
Value
Gets or sets the value component value of this color.
public double Value { get; set; }
Property Value
Methods
FromMagickColor(IMagickColor<ushort>)
Converts the specified ImageMagick.IMagickColor<> to an instance of this type.
public static ColorHSV? FromMagickColor(IMagickColor<ushort> color)
Parameters
colorIMagickColor<ushort>The color to use.
Returns
HueShift(double)
Performs a hue shift with the specified degrees.
public void HueShift(double degrees)
Parameters
degreesdoubleThe 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
colorMagickColorThe color to use.