Class
LabColor

CIE Lab* color (device‑independent, perceptually uniform); use when accurate color appearance across devices is required.

Definition

Namespace:Telerik.Windows.Documents.Fixed.Model.ColorSpaces

Assembly:Telerik.Windows.Documents.Fixed.dll

Syntax:

cs-api-definition
public class LabColor : ColorBase, IEquatable<ColorBase>

Inheritance: objectColorBaseLabColor

Implements: IEquatable<ColorBase>

Inherited Members ColorBase.Equals(object)ColorBase.GetHashCode()

Constructors

LabColor(double, double, double)

Creates a LabColor using CIE Standard Illuminant D65.

Declaration

cs-api-definition
public LabColor(double l, double a, double b)

Parameters

l

double

The L* component.

a

double

The a* component.

b

double

The b* component.

LabColor(double, double, double, double[])

Creates a LabColor with a custom white point.

Declaration

cs-api-definition
public LabColor(double l, double a, double b, double[] whitePoint)

Parameters

l

double

The L* component.

a

double

The a* component.

b

double

The b* component.

whitePoint

double[]

The white point component.

LabColor(double, double, double, double[], double[])

Creates a LabColor with custom white point and range.

Declaration

cs-api-definition
public LabColor(double l, double a, double b, double[] whitePoint, double[] range)

Parameters

l

double

The L* component.

a

double

The a* component.

b

double

The b* component.

whitePoint

double[]

The white point component.

range

double[]

The range component.

Properties

A

Gets or sets the a* (green–red) component.

Declaration

cs-api-definition
public double A { get; set; }

Property Value

double

The a* component.

B

Gets or sets the b* (blue–yellow) component.

Declaration

cs-api-definition
public double B { get; set; }

Property Value

double

The b* component.

L

Gets or sets the L* (lightness) component.

Declaration

cs-api-definition
public double L { get; set; }

Property Value

double

The L* component.

Range

Gets or sets the valid range for a* and b* components.

Declaration

cs-api-definition
public double[] Range { get; set; }

Property Value

double[]

The range component.

WhitePoint

Gets or sets the white point used by the Lab color space.

Declaration

cs-api-definition
public double[] WhitePoint { get; set; }

Property Value

double[]

The white point component.

Methods

Equals(ColorBase)

Equals the specified other.

Declaration

cs-api-definition
public override bool Equals(ColorBase other)

Parameters

other

ColorBase

The other.

Returns

bool

True if the specified color is equal to the current Lab color; otherwise, false.

Overrides ColorBase.Equals(ColorBase)