Class GammaCompanding
- Namespace
- SixLabors.ImageSharp.ColorProfiles.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(Vector4, double)
Compresses the linear vector to its nonlinear equivalent with respect to the energy.
public static Vector4 Compress(Vector4 vector, double gamma)
Parameters
Returns
Compress(Span<Vector4>, double)
Compresses the linear vectors to their nonlinear equivalents with respect to the energy.
public static void Compress(Span<Vector4> vectors, double gamma)
Parameters
Expand(Vector4, double)
Expands the nonlinear vector to its linear equivalent with respect to the energy.
public static Vector4 Expand(Vector4 vector, double gamma)
Parameters
Returns
Expand(Span<Vector4>, double)
Expands the nonlinear vectors to their linear equivalents with respect to the energy.
public static void Expand(Span<Vector4> vectors, double gamma)