Table of Contents

Class SRgbCompanding

Namespace
SixLabors.ImageSharp.ColorSpaces.Companding
Assembly
SixLabors.ImageSharp.dll

Implements sRGB companding.

public static class SRgbCompanding
Inheritance
SRgbCompanding
Inherited Members

Remarks

Methods

Compress(ref Vector4)

Compresses an uncompanded vector (linear) to its nonlinear equivalent.

public static void Compress(ref Vector4 vector)

Parameters

vector Vector4

The vector.

Compress(float)

Compresses an uncompanded channel (linear) to its nonlinear equivalent.

public static float Compress(float channel)

Parameters

channel float

The channel value.

Returns

float

The float representing the nonlinear channel value.

Compress(Span<Vector4>)

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

public static void Compress(Span<Vector4> vectors)

Parameters

vectors Span<Vector4>

The span of vectors.

Expand(ref Vector4)

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

public static void Expand(ref Vector4 vector)

Parameters

vector Vector4

The vector.

Expand(float)

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

public static float Expand(float channel)

Parameters

channel float

The channel value.

Returns

float

The float representing the linear channel value.

Expand(Span<Vector4>)

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

public static void Expand(Span<Vector4> vectors)

Parameters

vectors Span<Vector4>

The span of vectors.