Class LabColor
Represents a color in the CIE Lab* color space, which is device-independent and perceptually uniform.
Inherited Members
Namespace: Telerik.Windows.Documents.Fixed.Model.ColorSpaces
Assembly: Telerik.Windows.Documents.Fixed.dll
Syntax
public class LabColor : ColorBase, IEquatable<ColorBase>, ISolidColor
Constructors
LabColor(Double, Double, Double)
Initializes a new instance of the LabColor class with CIE Standard Illuminant D65.
Declaration
public LabColor(double l, double a, double b)
Parameters
System.Double
l
The L* component. |
System.Double
a
The a* component. |
System.Double
b
The b* component. |
LabColor(Double, Double, Double, Double[])
Initializes a new instance of the LabColor class with a custom white point.
Declaration
public LabColor(double l, double a, double b, double[] whitePoint)
Parameters
System.Double
l
The L* component. |
System.Double
a
The a* component. |
System.Double
b
The b* component. |
System.Double[]
whitePoint
The white point component. |
LabColor(Double, Double, Double, Double[], Double[])
Initializes a new instance of the LabColor class with custom white point and range.
Declaration
public LabColor(double l, double a, double b, double[] whitePoint, double[] range)
Parameters
System.Double
l
The L* component. |
System.Double
a
The a* component. |
System.Double
b
The b* component. |
System.Double[]
whitePoint
The white point component. |
System.Double[]
range
The range component. |
Properties
A
Gets or sets the a* (green-red) component of the Lab color.
Declaration
public double A { get; set; }
Property Value
System.Double
The a* component. |
B
Gets or sets the b* (blue-yellow) component of the Lab color.
Declaration
public double B { get; set; }
Property Value
System.Double
The b* component. |
L
Gets or sets the L* (lightness) component of the Lab color.
Declaration
public double L { get; set; }
Property Value
System.Double
The L* component. |
Range
Gets or sets the range component.
Declaration
public double[] Range { get; set; }
Property Value
System.Double[]
The range component. |
WhitePoint
Gets or sets the white point component.
Declaration
public double[] WhitePoint { get; set; }
Property Value
System.Double[]
The white point component. |
Methods
Equals(ColorBase)
Equals the specified other.
Declaration
public override bool Equals(ColorBase other)
Parameters
ColorBase
other
The other. |
Returns
System.Boolean
True if the specified color is equal to the current Lab color; otherwise, false. |