Table of Contents

Class VonKriesChromaticAdaptation

Namespace
SixLabors.ImageSharp.ColorProfiles
Assembly
SixLabors.ImageSharp.dll

Implementation of the Von Kries chromatic adaptation model.

public static class VonKriesChromaticAdaptation
Inheritance
VonKriesChromaticAdaptation
Inherited Members

Remarks

Methods

Transform(in CieXyz, (CieXyz From, CieXyz To), Matrix4x4)

Performs a linear transformation of a source color in to the destination color.

public static CieXyz Transform(in CieXyz source, (CieXyz From, CieXyz To) whitePoints, Matrix4x4 matrix)

Parameters

source CieXyz

The source color.

whitePoints (CieXyz From, CieXyz To)

The conversion white points.

matrix Matrix4x4

The chromatic adaptation matrix.

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 From, CieXyz To), Matrix4x4)

Performs a bulk linear transformation of a source color in to the destination color.

public static void Transform(ReadOnlySpan<CieXyz> source, Span<CieXyz> destination, (CieXyz From, CieXyz To) whitePoints, Matrix4x4 matrix)

Parameters

source ReadOnlySpan<CieXyz>

The span to the source colors.

destination Span<CieXyz>

The span to the destination colors.

whitePoints (CieXyz From, CieXyz To)

The conversion white points.

matrix Matrix4x4

The chromatic adaptation matrix.

Remarks

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