Table of Contents

Class RgbWorkingSpace

Namespace
SixLabors.ImageSharp.ColorSpaces.Conversion
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(float)

Compresses an uncompanded channel (linear) to its nonlinear equivalent (depends on the RGB color system).

public abstract float Compress(float channel)

Parameters

channel float

The channel value.

Returns

float

The float representing the nonlinear channel value.

Remarks

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

Expand(float)

Expands a companded channel to its linear equivalent with respect to the energy.

public abstract float Expand(float channel)

Parameters

channel float

The channel value.

Returns

float

The float representing the linear channel value.

Remarks

GetHashCode()

public override int GetHashCode()

Returns

int