Struct Lab
Defines a CIE Lab color
[ColorInfo(ConversionCodename = "Lab")]
public struct Lab : IColor, IEquatable<Lab>
- Implements
- Inherited Members
Constructors
Lab(double, double, double)
Create a CIE Lab color using the specific values
public Lab(double x, double y, double z)
Parameters
x
doubleThe x value for this color
y
doubleThe y value for this color
z
doubleThe z value for this color
Properties
Dimension
Get the dimension of this color
public int Dimension { get; }
Property Value
MCvScalar
Get or Set the equivalent MCvScalar value
public MCvScalar MCvScalar { get; set; }
Property Value
X
Get or set the intensity of the x color channel
public double X { get; set; }
Property Value
Y
Get or set the intensity of the y color channel
public double Y { get; set; }
Property Value
Z
Get or set the intensity of the z color channel
public double Z { get; set; }
Property Value
Methods
Equals(Lab)
Return true if the two color equals
public bool Equals(Lab other)
Parameters
other
LabThe 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