Class RgbWorkingSpace
- Namespace
- SixLabors.ImageSharp.ColorSpaces.Conversion
- Assembly
- SixLabors.ImageSharp.dll
Base class for all implementations of RgbWorkingSpace.
public abstract class RgbWorkingSpace
- Inheritance
-
RgbWorkingSpace
- Derived
- Inherited Members
Constructors
RgbWorkingSpace(CieXyz, RgbPrimariesChromaticityCoordinates)
Initializes a new instance of the RgbWorkingSpace class.
protected RgbWorkingSpace(CieXyz referenceWhite, RgbPrimariesChromaticityCoordinates chromaticityCoordinates)
Parameters
referenceWhite
CieXyzThe reference white point.
chromaticityCoordinates
RgbPrimariesChromaticityCoordinatesThe chromaticity of the rgb primaries.
Properties
ChromaticityCoordinates
Gets the chromaticity of the rgb primaries.
public RgbPrimariesChromaticityCoordinates ChromaticityCoordinates { get; }
Property Value
WhitePoint
Gets the reference white point
public CieXyz WhitePoint { get; }
Property Value
Methods
Compress(float)
Compresses an uncompanded channel (linear) to its nonlinear equivalent (depends on the RGB color system).
public abstract 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 abstract 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()