Class GammaWorkingSpace
The gamma working space.
Inherited Members
Namespace: SixLabors.ImageSharp.ColorSpaces.Conversion
Assembly: SixLabors.ImageSharp.dll
Syntax
public sealed class GammaWorkingSpace : RgbWorkingSpace
Constructors
| Edit this page View SourceGammaWorkingSpace(float, CieXyz, RgbPrimariesChromaticityCoordinates)
Initializes a new instance of the GammaWorkingSpace class.
Declaration
public GammaWorkingSpace(float gamma, CieXyz referenceWhite, RgbPrimariesChromaticityCoordinates chromaticityCoordinates)
Parameters
Type | Name | Description |
---|---|---|
float | gamma | The gamma value. |
CieXyz | referenceWhite | The reference white point. |
RgbPrimariesChromaticityCoordinates | chromaticityCoordinates | The chromaticity of the rgb primaries. |
Properties
| Edit this page View SourceGamma
Gets the gamma value.
Declaration
public float Gamma { get; }
Property Value
Type | Description |
---|---|
float |
Methods
| Edit this page View SourceCompress(float)
Compresses an uncompanded channel (linear) to its nonlinear equivalent (depends on the RGB color system).
Declaration
public override float Compress(float channel)
Parameters
Type | Name | Description |
---|---|---|
float | channel | The channel value. |
Returns
Type | Description |
---|---|
float | The float representing the nonlinear channel value. |
Overrides
Remarks
For more info see: http://www.brucelindbloom.com/index.html?Eqn_XYZ_to_RGB.html
Equals(object?)
Determines whether the specified object is equal to the current object.
Declaration
public override bool Equals(object? obj)
Parameters
Type | Name | Description |
---|---|---|
object | obj | The object to compare with the current object. |
Returns
Type | Description |
---|---|
bool | true if the specified object is equal to the current object; otherwise, false. |
Overrides
| Edit this page View SourceExpand(float)
Expands a companded channel to its linear equivalent with respect to the energy.
Declaration
public override float Expand(float channel)
Parameters
Type | Name | Description |
---|---|---|
float | channel | The channel value. |
Returns
Type | Description |
---|---|
float | The float representing the linear channel value. |
Overrides
Remarks
For more info see: http://www.brucelindbloom.com/index.html?Eqn_RGB_to_XYZ.html
GetHashCode()
Serves as the default hash function.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
int | A hash code for the current object. |