Class Rec2020WorkingSpace
- Namespace
- SixLabors.ImageSharp.ColorSpaces.Conversion
- Assembly
- SixLabors.ImageSharp.dll
Rec. 2020 (ITU-R Recommendation BT.2020F) working space.
public sealed class Rec2020WorkingSpace : RgbWorkingSpace
- Inheritance
-
Rec2020WorkingSpace
- Inherited Members
Constructors
Rec2020WorkingSpace(CieXyz, RgbPrimariesChromaticityCoordinates)
Initializes a new instance of the Rec2020WorkingSpace class.
public Rec2020WorkingSpace(CieXyz referenceWhite, RgbPrimariesChromaticityCoordinates chromaticityCoordinates)
Parameters
referenceWhite
CieXyzThe reference white point.
chromaticityCoordinates
RgbPrimariesChromaticityCoordinatesThe chromaticity of the rgb primaries.
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
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