Table of Contents

Class GammaWorkingSpace

Namespace
SixLabors.ImageSharp.ColorSpaces.Conversion
Assembly
SixLabors.ImageSharp.dll

The gamma working space.

public sealed class GammaWorkingSpace : RgbWorkingSpace
Inheritance
GammaWorkingSpace
Inherited Members

Constructors

GammaWorkingSpace(float, CieXyz, RgbPrimariesChromaticityCoordinates)

Initializes a new instance of the GammaWorkingSpace class.

public GammaWorkingSpace(float gamma, CieXyz referenceWhite, RgbPrimariesChromaticityCoordinates chromaticityCoordinates)

Parameters

gamma float

The gamma value.

referenceWhite CieXyz

The reference white point.

chromaticityCoordinates RgbPrimariesChromaticityCoordinates

The chromaticity of the rgb primaries.

Properties

Gamma

Gets the gamma value.

public float Gamma { get; }

Property Value

float

Methods

Compress(float)

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

public override 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 override 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