Struct Hls
Defines a Hls (Hue Lightness Satuation) color
[ColorInfo(ConversionCodename = "Hls")]
public struct Hls : IColor, IEquatable<Hls>
- Implements
- Inherited Members
Constructors
Hls(double, double, double)
Create a Hls color using the specific values
public Hls(double hue, double lightness, double satuation)
Parameters
hue
doubleThe hue value for this color ( 0 < hue < 180 )
lightness
doubleThe lightness for this color
satuation
doubleThe satuation for this color
Properties
Dimension
Get the dimension of this color
public int Dimension { get; }
Property Value
Hue
Get or set the intensity of the hue color channel ( 0 < hue < 180 )
public double Hue { get; set; }
Property Value
Lightness
Get or set the intensity of the lightness color channel
public double Lightness { get; set; }
Property Value
MCvScalar
Get or Set the equivalent MCvScalar value
public MCvScalar MCvScalar { get; set; }
Property Value
Satuation
Get or set the intensity of the satuation color channel
public double Satuation { get; set; }
Property Value
Methods
Equals(Hls)
Return true if the two color equals
public bool Equals(Hls other)
Parameters
other
HlsThe other color to compare with
Returns
- bool
true if the two color equals
ToString()
Represent this color as a String
public override string ToString()
Returns
- string
The string representation of this color