Struct RgbPrimariesChromaticityCoordinates
- Namespace
- SixLabors.ImageSharp.ColorProfiles
- Assembly
- SixLabors.ImageSharp.dll
Represents the chromaticity coordinates of RGB primaries. One of the specifiers of RgbWorkingSpace.
public readonly struct RgbPrimariesChromaticityCoordinates : IEquatable<RgbPrimariesChromaticityCoordinates>
- Implements
- Inherited Members
Constructors
RgbPrimariesChromaticityCoordinates(CieXyChromaticityCoordinates, CieXyChromaticityCoordinates, CieXyChromaticityCoordinates)
Initializes a new instance of the RgbPrimariesChromaticityCoordinates struct.
public RgbPrimariesChromaticityCoordinates(CieXyChromaticityCoordinates r, CieXyChromaticityCoordinates g, CieXyChromaticityCoordinates b)
Parameters
rCieXyChromaticityCoordinatesThe chromaticity coordinates of the red channel.
gCieXyChromaticityCoordinatesThe chromaticity coordinates of the green channel.
bCieXyChromaticityCoordinatesThe chromaticity coordinates of the blue channel.
Properties
B
Gets the chromaticity coordinates of the blue channel.
public CieXyChromaticityCoordinates B { get; }
Property Value
G
Gets the chromaticity coordinates of the green channel.
public CieXyChromaticityCoordinates G { get; }
Property Value
R
Gets the chromaticity coordinates of the red channel.
public CieXyChromaticityCoordinates R { get; }
Property Value
Methods
Equals(RgbPrimariesChromaticityCoordinates)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(RgbPrimariesChromaticityCoordinates other)
Parameters
otherRgbPrimariesChromaticityCoordinatesAn object to compare with this object.
Returns
Equals(object?)
Indicates whether this instance and a specified object are equal.
public override bool Equals(object? obj)
Parameters
objobjectThe object to compare with the current instance.
Returns
- bool
true if
objand this instance are the same type and represent the same value; otherwise, false.
GetHashCode()
Returns the hash code for this instance.
public override int GetHashCode()
Returns
- int
A 32-bit signed integer that is the hash code for this instance.
Operators
operator ==(RgbPrimariesChromaticityCoordinates, RgbPrimariesChromaticityCoordinates)
Compares two RgbPrimariesChromaticityCoordinates objects for equality.
public static bool operator ==(RgbPrimariesChromaticityCoordinates left, RgbPrimariesChromaticityCoordinates right)
Parameters
leftRgbPrimariesChromaticityCoordinatesThe RgbPrimariesChromaticityCoordinates on the left side of the operand.
rightRgbPrimariesChromaticityCoordinatesThe RgbPrimariesChromaticityCoordinates on the right side of the operand.
Returns
- bool
True if the current left is equal to the
rightparameter; otherwise, false.
operator !=(RgbPrimariesChromaticityCoordinates, RgbPrimariesChromaticityCoordinates)
Compares two RgbPrimariesChromaticityCoordinates objects for inequality
public static bool operator !=(RgbPrimariesChromaticityCoordinates left, RgbPrimariesChromaticityCoordinates right)
Parameters
leftRgbPrimariesChromaticityCoordinatesThe RgbPrimariesChromaticityCoordinates on the left side of the operand.
rightRgbPrimariesChromaticityCoordinatesThe RgbPrimariesChromaticityCoordinates on the right side of the operand.
Returns
- bool
True if the current left is unequal to the
rightparameter; otherwise, false.