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
floatThe gamma value.
referenceWhite
CieXyzThe reference white point.
chromaticityCoordinates
RgbPrimariesChromaticityCoordinatesThe chromaticity of the rgb primaries.
Properties
Gamma
Gets the gamma value.
public float Gamma { get; }
Property Value
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
floatThe channel value.
Returns
Remarks
For more info see: http://www.brucelindbloom.com/index.html?Eqn_XYZ_to_RGB.html
Equals(object?)
public override bool Equals(object? obj)
Parameters
obj
object
Returns
Expand(float)
Expands a companded channel to its linear equivalent with respect to the energy.
public override float Expand(float channel)
Parameters
channel
floatThe channel value.
Returns
Remarks
For more info see: http://www.brucelindbloom.com/index.html?Eqn_RGB_to_XYZ.html
GetHashCode()
public override int GetHashCode()