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
sourceCieXyzThe source color.
sourceWhitePointCieXyzThe source white point.
destinationWhitePointCieXyzThe 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
sourceReadOnlySpan<CieXyz>The span to the source colors.
destinationSpan<CieXyz>The span to the destination colors.
sourceWhitePointCieXyzThe source white point.
destinationWhitePointCieXyzThe destination white point.
Remarks
Doesn't crop the resulting color space coordinates (e. g. allows negative values for XYZ coordinates).