Interface IChromaticAdaptation
- Namespace
- SixLabors.ImageSharp.ColorSpaces.Conversion
- Assembly
- SixLabors.ImageSharp.dll
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).
public interface IChromaticAdaptation
Methods
Transform(in CieXyz, in CieXyz, in CieXyz)
Performs a linear transformation of a source color in to the destination color.
CieXyz Transform(in CieXyz source, in CieXyz sourceWhitePoint, in CieXyz destinationWhitePoint)
Parameters
source
CieXyzThe source color.
sourceWhitePoint
CieXyzThe source white point.
destinationWhitePoint
CieXyzThe destination white point.
Returns
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.
void Transform(ReadOnlySpan<CieXyz> source, Span<CieXyz> destination, CieXyz sourceWhitePoint, in CieXyz destinationWhitePoint)
Parameters
source
ReadOnlySpan<CieXyz>The span to the source colors.
destination
Span<CieXyz>The span to the destination colors.
sourceWhitePoint
CieXyzThe source white point.
destinationWhitePoint
CieXyzThe destination white point.
Remarks
Doesn't crop the resulting color space coordinates (e. g. allows negative values for XYZ coordinates).