Table of Contents

Class RgbWorkingSpace

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

Base class for all implementations of RgbWorkingSpace.

public abstract class RgbWorkingSpace
Inheritance
RgbWorkingSpace
Derived
Inherited Members

Constructors

RgbWorkingSpace(CieXyz, RgbPrimariesChromaticityCoordinates)

Initializes a new instance of the RgbWorkingSpace class.

protected RgbWorkingSpace(CieXyz referenceWhite, RgbPrimariesChromaticityCoordinates chromaticityCoordinates)

Parameters

referenceWhite CieXyz

The reference white point.

chromaticityCoordinates RgbPrimariesChromaticityCoordinates

The chromaticity of the rgb primaries.

Properties

ChromaticityCoordinates

Gets the chromaticity of the rgb primaries.

public RgbPrimariesChromaticityCoordinates ChromaticityCoordinates { get; }

Property Value

RgbPrimariesChromaticityCoordinates

WhitePoint

Gets the reference white point

public CieXyz WhitePoint { get; }

Property Value

CieXyz

Methods

Compress(Vector4)

Compresses the linear vector to its nonlinear equivalent with respect to the energy.

public abstract Vector4 Compress(Vector4 vector)

Parameters

vector Vector4

The vector.

Returns

Vector4

The Vector4.

Compress(Span<Vector4>)

Compresses the linear vectors to their nonlinear equivalents with respect to the energy.

public abstract void Compress(Span<Vector4> vectors)

Parameters

vectors Span<Vector4>

The span of vectors.

Equals(object?)

Determines whether the specified object is equal to the current object.

public override bool Equals(object? obj)

Parameters

obj object

The object to compare with the current object.

Returns

bool

true if the specified object is equal to the current object; otherwise, false.

Expand(Vector4)

Compresses the linear vector to its nonlinear equivalent with respect to the energy.

public abstract Vector4 Expand(Vector4 vector)

Parameters

vector Vector4

The vector.

Returns

Vector4

The Vector4.

Expand(Span<Vector4>)

Expands the nonlinear vectors to their linear equivalents with respect to the energy.

public abstract void Expand(Span<Vector4> vectors)

Parameters

vectors Span<Vector4>

The span of vectors.

GetHashCode()

Serves as the default hash function.

public override int GetHashCode()

Returns

int

A hash code for the current object.