Class LabColor
CIE Lab* color (device‑independent, perceptually uniform); use when accurate color appearance across devices is required.
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)
Creates a LabColor using 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[])
Creates a LabColor 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[])
Creates a LabColor 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.
Declaration
public double A { get; set; }
Property Value
|
System.Double
The a* component. |
B
Gets or sets the b* (blue–yellow) component.
Declaration
public double B { get; set; }
Property Value
|
System.Double
The b* component. |
L
Gets or sets the L* (lightness) component.
Declaration
public double L { get; set; }
Property Value
|
System.Double
The L* component. |
Range
Gets or sets the valid range for a* and b* components.
Declaration
public double[] Range { get; set; }
Property Value
|
System.Double[]
The range component. |
WhitePoint
Gets or sets the white point used by the Lab color space.
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. |