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
| Edit this page 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
| Edit this page View SourceB
Gets the chromaticity coordinates of the blue channel.
Declaration
public CieXyChromaticityCoordinates B { get; }Property Value
| Type | Description | 
|---|---|
| CieXyChromaticityCoordinates | 
G
Gets the chromaticity coordinates of the green channel.
Declaration
public CieXyChromaticityCoordinates G { get; }Property Value
| Type | Description | 
|---|---|
| CieXyChromaticityCoordinates | 
R
Gets the chromaticity coordinates of the red channel.
Declaration
public CieXyChromaticityCoordinates R { get; }Property Value
| Type | Description | 
|---|---|
| CieXyChromaticityCoordinates | 
Methods
| Edit this page View SourceEquals(RgbPrimariesChromaticityCoordinates)
Indicates whether the current object is equal to another object of the same type.
Declaration
public bool Equals(RgbPrimariesChromaticityCoordinates other)Parameters
| Type | Name | Description | 
|---|---|---|
| RgbPrimariesChromaticityCoordinates | other | An object to compare with this object. | 
Returns
| Type | Description | 
|---|---|
| bool | true if the current object is equal to the  | 
Equals(object?)
Indicates whether this instance and a specified object are equal.
Declaration
public override bool Equals(object? obj)Parameters
| Type | Name | Description | 
|---|---|---|
| object | obj | The object to compare with the current instance. | 
Returns
| Type | Description | 
|---|---|
| bool | true if  | 
Overrides
| Edit this page View SourceGetHashCode()
Returns the hash code for this instance.
Declaration
public override int GetHashCode()Returns
| Type | Description | 
|---|---|
| int | A 32-bit signed integer that is the hash code for this instance. | 
Overrides
Operators
| Edit this page View Sourceoperator ==(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 | 
|---|---|
| bool | True if the current left is equal to the  | 
operator !=(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 | 
|---|---|
| bool | True if the current left is unequal to the  |