Table of Contents

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 CieXyz

The source color.

sourceWhitePoint CieXyz

The source white point.

destinationWhitePoint CieXyz

The destination white point.

Returns

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.

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 CieXyz

The source white point.

destinationWhitePoint CieXyz

The destination white point.

Remarks

Doesn't crop the resulting color space coordinates (e. g. allows negative values for XYZ coordinates).