Table of Contents

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

r CieXyChromaticityCoordinates

The chromaticity coordinates of the red channel.

g CieXyChromaticityCoordinates

The chromaticity coordinates of the green channel.

b CieXyChromaticityCoordinates

The chromaticity coordinates of the blue channel.

Properties

B

Gets the chromaticity coordinates of the blue channel.

public CieXyChromaticityCoordinates B { get; }

Property Value

CieXyChromaticityCoordinates

G

Gets the chromaticity coordinates of the green channel.

public CieXyChromaticityCoordinates G { get; }

Property Value

CieXyChromaticityCoordinates

R

Gets the chromaticity coordinates of the red channel.

public CieXyChromaticityCoordinates R { get; }

Property Value

CieXyChromaticityCoordinates

Methods

Equals(RgbPrimariesChromaticityCoordinates)

Indicates whether the current object is equal to another object of the same type.

public bool Equals(RgbPrimariesChromaticityCoordinates other)

Parameters

other RgbPrimariesChromaticityCoordinates

An object to compare with this object.

Returns

bool

true if the current object is equal to the other parameter; otherwise, false.

Equals(object?)

Indicates whether this instance and a specified object are equal.

public override bool Equals(object? obj)

Parameters

obj object

The object to compare with the current instance.

Returns

bool

true if obj and 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

left RgbPrimariesChromaticityCoordinates

The RgbPrimariesChromaticityCoordinates on the left side of the operand.

right RgbPrimariesChromaticityCoordinates

The RgbPrimariesChromaticityCoordinates on the right side of the operand.

Returns

bool

True if the current left is equal to the right parameter; otherwise, false.

operator !=(RgbPrimariesChromaticityCoordinates, RgbPrimariesChromaticityCoordinates)

Compares two RgbPrimariesChromaticityCoordinates objects for inequality

public static bool operator !=(RgbPrimariesChromaticityCoordinates left, RgbPrimariesChromaticityCoordinates right)

Parameters

left RgbPrimariesChromaticityCoordinates

The RgbPrimariesChromaticityCoordinates on the left side of the operand.

right RgbPrimariesChromaticityCoordinates

The RgbPrimariesChromaticityCoordinates on the right side of the operand.

Returns

bool

True if the current left is unequal to the right parameter; otherwise, false.