Class RgbWorkingSpace
Base class for all implementations of RgbWorkingSpace.
Inheritance
Inherited Members
Namespace: SixLabors.ImageSharp.ColorSpaces.Conversion
Assembly: SixLabors.ImageSharp.dll
Syntax
public abstract class RgbWorkingSpace
Constructors
| Edit this page 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
| Edit this page 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
| Edit this page View SourceCompress(float)
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 |
---|---|---|
float | channel | The channel value. |
Returns
Type | Description |
---|---|
float | The float representing the nonlinear channel value. |
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 abstract float Expand(float channel)
Parameters
Type | Name | Description |
---|---|---|
float | channel | The channel value. |
Returns
Type | Description |
---|---|
float | The float representing the linear channel value. |
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. |