Class GammaWorkingSpace
- Namespace
- SixLabors.ImageSharp.ColorProfiles.WorkingSpaces
- 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
gammafloatThe gamma value.
referenceWhiteCieXyzThe reference white point.
chromaticityCoordinatesRgbPrimariesChromaticityCoordinatesThe chromaticity of the rgb primaries.
Properties
Gamma
Gets the gamma value.
public float Gamma { get; }
Property Value
Methods
Compress(Vector4)
Compresses the linear vector to its nonlinear equivalent with respect to the energy.
public override Vector4 Compress(Vector4 vector)
Parameters
vectorVector4The vector.
Returns
Compress(Span<Vector4>)
Compresses the linear vectors to their nonlinear equivalents with respect to the energy.
public override void Compress(Span<Vector4> vectors)
Parameters
Equals(object?)
Determines whether the specified object is equal to the current object.
public override bool Equals(object? obj)
Parameters
objobjectThe object to compare with the current object.
Returns
Expand(Vector4)
Compresses the linear vector to its nonlinear equivalent with respect to the energy.
public override Vector4 Expand(Vector4 vector)
Parameters
vectorVector4The vector.
Returns
Expand(Span<Vector4>)
Expands the nonlinear vectors to their linear equivalents with respect to the energy.
public override void Expand(Span<Vector4> vectors)
Parameters
GetHashCode()
Serves as the default hash function.
public override int GetHashCode()
Returns
- int
A hash code for the current object.