Class SRgbCompanding
- Namespace
- SixLabors.ImageSharp.ColorSpaces.Companding
- Assembly
- SixLabors.ImageSharp.dll
Implements sRGB companding.
public static class SRgbCompanding
- Inheritance
-
SRgbCompanding
- Inherited Members
Remarks
For more info see: http://www.brucelindbloom.com/index.html?Eqn_RGB_to_XYZ.html http://www.brucelindbloom.com/index.html?Eqn_XYZ_to_RGB.html
Methods
Compress(ref Vector4)
Compresses an uncompanded vector (linear) to its nonlinear equivalent.
public static void Compress(ref Vector4 vector)
Parameters
vector
Vector4The vector.
Compress(float)
Compresses an uncompanded channel (linear) to its nonlinear equivalent.
public static float Compress(float channel)
Parameters
channel
floatThe channel value.
Returns
Compress(Span<Vector4>)
Compresses the uncompanded vectors to their nonlinear equivalents with respect to the energy.
public static void Compress(Span<Vector4> vectors)
Parameters
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
Vector4The vector.
Expand(float)
Expands a companded channel to its linear equivalent with respect to the energy.
public static float Expand(float channel)
Parameters
channel
floatThe channel value.
Returns
Expand(Span<Vector4>)
Expands the companded vectors to their linear equivalents with respect to the energy.
public static void Expand(Span<Vector4> vectors)