Class GammaCompanding
- Namespace
- SixLabors.ImageSharp.ColorSpaces.Companding
- Assembly
- SixLabors.ImageSharp.dll
Implements gamma companding.
public static class GammaCompanding
- Inheritance
-
GammaCompanding
- Inherited Members
Remarks
http://www.brucelindbloom.com/index.html?Eqn_RGB_to_XYZ.html http://www.brucelindbloom.com/index.html?Eqn_XYZ_to_RGB.html
Methods
Compress(float, float)
Compresses an uncompanded channel (linear) to its nonlinear equivalent.
public static float Compress(float channel, float gamma)
Parameters
Returns
Expand(float, float)
Expands a companded channel to its linear equivalent with respect to the energy.
public static float Expand(float channel, float gamma)