Class RgbWorkingSpace
Base class for all implementations of RgbWorkingSpace.
Inheritance
RgbWorkingSpace
Inherited Members
Namespace: SixLabors.ImageSharp.ColorSpaces.Conversion
Assembly: SixLabors.ImageSharp.dll
Syntax
public abstract class RgbWorkingSpace
Constructors
| Improve this Doc View SourceRgbWorkingSpace(CieXyz, RgbPrimariesChromaticityCoordinates)
Initializes a new instance of the RgbWorkingSpace class.
Declaration
protected RgbWorkingSpace(CieXyz referenceWhite, RgbPrimariesChromaticityCoordinates chromaticityCoordinates)
Parameters
Type | Name | Description |
---|---|---|
CieXyz | referenceWhite | The reference white point. |
RgbPrimariesChromaticityCoordinates | chromaticityCoordinates | The chromaticity of the rgb primaries. |
Properties
| Improve this Doc View SourceChromaticityCoordinates
Gets the chromaticity of the rgb primaries.
Declaration
public RgbPrimariesChromaticityCoordinates ChromaticityCoordinates { get; }
Property Value
Type | Description |
---|---|
RgbPrimariesChromaticityCoordinates |
WhitePoint
Gets the reference white point
Declaration
public CieXyz WhitePoint { get; }
Property Value
Type | Description |
---|---|
CieXyz |
Methods
| Improve this Doc View SourceCompress(Single)
Compresses an uncompanded channel (linear) to its nonlinear equivalent (depends on the RGB color system).
Declaration
public abstract float Compress(float channel)
Parameters
Type | Name | Description |
---|---|---|
Single | channel | The channel value. |
Returns
Type | Description |
---|---|
Single | The Single representing the nonlinear channel value. |
Remarks
For more info see: http://www.brucelindbloom.com/index.html?Eqn_XYZ_to_RGB.html
Equals(Object)
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
Object | obj |
Returns
Type | Description |
---|---|
Boolean |
Overrides
| Improve this Doc View SourceExpand(Single)
Expands a companded channel to its linear equivalent with respect to the energy.
Declaration
public abstract float Expand(float channel)
Parameters
Type | Name | Description |
---|---|---|
Single | channel | The channel value. |
Returns
Type | Description |
---|---|
Single | The Single representing the linear channel value. |
Remarks
For more info see: http://www.brucelindbloom.com/index.html?Eqn_RGB_to_XYZ.html
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
Int32 |