Interface IChromaticAdaptation
Chromatic adaptation. A linear transformation of a source color (XS, YS, ZS) into a destination color (XD, YD, ZD) by a linear transformation [M] which is dependent on the source reference white (XWS, YWS, ZWS) and the destination reference white (XWD, YWD, ZWD).
Namespace: SixLabors.ImageSharp.ColorSpaces.Conversion
Assembly: SixLabors.ImageSharp.dll
Syntax
public interface IChromaticAdaptationMethods
| Improve this Doc View SourceTransform(in CieXyz, in CieXyz, in CieXyz)
Performs a linear transformation of a source color in to the destination color.
Declaration
CieXyz Transform(in CieXyz source, in CieXyz sourceWhitePoint, in CieXyz destinationWhitePoint)Parameters
| Type | Name | Description | 
|---|---|---|
| CieXyz | source | The source color. | 
| CieXyz | sourceWhitePoint | The source white point. | 
| CieXyz | destinationWhitePoint | The destination white point. | 
Returns
| Type | Description | 
|---|---|
| CieXyz | The CieXyz | 
Remarks
Doesn't crop the resulting color space coordinates (e. g. allows negative values for XYZ coordinates).
Transform(ReadOnlySpan<CieXyz>, Span<CieXyz>, CieXyz, in CieXyz)
Performs a bulk linear transformation of a source color in to the destination color.
Declaration
void Transform(ReadOnlySpan<CieXyz> source, Span<CieXyz> destination, CieXyz sourceWhitePoint, in CieXyz destinationWhitePoint)Parameters
| Type | Name | Description | 
|---|---|---|
| ReadOnlySpan<CieXyz> | source | The span to the source colors. | 
| Span<CieXyz> | destination | The span to the destination colors. | 
| CieXyz | sourceWhitePoint | The source white point. | 
| CieXyz | destinationWhitePoint | The destination white point. | 
Remarks
Doesn't crop the resulting color space coordinates (e. g. allows negative values for XYZ coordinates).