Struct RgbPrimariesChromaticityCoordinates
Represents the chromaticity coordinates of RGB primaries. One of the specifiers of RgbWorkingSpace.
Implements
Inherited Members
Namespace: SixLabors.ImageSharp.ColorSpaces.Conversion
Assembly: SixLabors.ImageSharp.dll
Syntax
public readonly struct RgbPrimariesChromaticityCoordinates : IEquatable<RgbPrimariesChromaticityCoordinates>Constructors
| Improve this Doc View SourceRgbPrimariesChromaticityCoordinates(CieXyChromaticityCoordinates, CieXyChromaticityCoordinates, CieXyChromaticityCoordinates)
Initializes a new instance of the RgbPrimariesChromaticityCoordinates struct.
Declaration
public RgbPrimariesChromaticityCoordinates(CieXyChromaticityCoordinates r, CieXyChromaticityCoordinates g, CieXyChromaticityCoordinates b)Parameters
| Type | Name | Description | 
|---|---|---|
| CieXyChromaticityCoordinates | r | The chromaticity coordinates of the red channel. | 
| CieXyChromaticityCoordinates | g | The chromaticity coordinates of the green channel. | 
| CieXyChromaticityCoordinates | b | The chromaticity coordinates of the blue channel. | 
Properties
| Improve this Doc View SourceB
Gets the chromaticity coordinates of the blue channel.
Declaration
public readonly CieXyChromaticityCoordinates B { get; }Property Value
| Type | Description | 
|---|---|
| CieXyChromaticityCoordinates | 
G
Gets the chromaticity coordinates of the green channel.
Declaration
public readonly CieXyChromaticityCoordinates G { get; }Property Value
| Type | Description | 
|---|---|
| CieXyChromaticityCoordinates | 
R
Gets the chromaticity coordinates of the red channel.
Declaration
public readonly CieXyChromaticityCoordinates R { get; }Property Value
| Type | Description | 
|---|---|
| CieXyChromaticityCoordinates | 
Methods
| Improve this Doc View SourceEquals(RgbPrimariesChromaticityCoordinates)
Declaration
public readonly bool Equals(RgbPrimariesChromaticityCoordinates other)Parameters
| Type | Name | Description | 
|---|---|---|
| RgbPrimariesChromaticityCoordinates | other | 
Returns
| Type | Description | 
|---|---|
| Boolean | 
Equals(Object)
Declaration
public override readonly bool Equals(object obj)Parameters
| Type | Name | Description | 
|---|---|---|
| Object | obj | 
Returns
| Type | Description | 
|---|---|
| Boolean | 
Overrides
| Improve this Doc View SourceGetHashCode()
Declaration
public override readonly int GetHashCode()Returns
| Type | Description | 
|---|---|
| Int32 | 
Overrides
Operators
| Improve this Doc View SourceEquality(RgbPrimariesChromaticityCoordinates, RgbPrimariesChromaticityCoordinates)
Compares two RgbPrimariesChromaticityCoordinates objects for equality.
Declaration
public static bool operator ==(RgbPrimariesChromaticityCoordinates left, RgbPrimariesChromaticityCoordinates right)Parameters
| Type | Name | Description | 
|---|---|---|
| RgbPrimariesChromaticityCoordinates | left | The RgbPrimariesChromaticityCoordinates on the left side of the operand. | 
| RgbPrimariesChromaticityCoordinates | right | The RgbPrimariesChromaticityCoordinates on the right side of the operand. | 
Returns
| Type | Description | 
|---|---|
| Boolean | True if the current left is equal to the  | 
Inequality(RgbPrimariesChromaticityCoordinates, RgbPrimariesChromaticityCoordinates)
Compares two RgbPrimariesChromaticityCoordinates objects for inequality
Declaration
public static bool operator !=(RgbPrimariesChromaticityCoordinates left, RgbPrimariesChromaticityCoordinates right)Parameters
| Type | Name | Description | 
|---|---|---|
| RgbPrimariesChromaticityCoordinates | left | The RgbPrimariesChromaticityCoordinates on the left side of the operand. | 
| RgbPrimariesChromaticityCoordinates | right | The RgbPrimariesChromaticityCoordinates on the right side of the operand. | 
Returns
| Type | Description | 
|---|---|
| Boolean | True if the current left is unequal to the  |