Table of Contents

Struct CieXyy

Namespace
SixLabors.ImageSharp.ColorProfiles
Assembly
SixLabors.ImageSharp.dll
public readonly struct CieXyy : IColorProfile<CieXyy, CieXyz>, IColorProfile<CieXyy>, IColorProfile, IEquatable<CieXyy>
Implements
Inherited Members

Constructors

CieXyy(Vector3)

Initializes a new instance of the CieXyy struct.

public CieXyy(Vector3 vector)

Parameters

vector Vector3

The vector representing the x, y, Y components.

CieXyy(float, float, float)

Initializes a new instance of the CieXyy struct.

public CieXyy(float x, float y, float yl)

Parameters

x float

The x chroma component.

y float

The y chroma component.

yl float

The y luminance component.

Properties

X

Gets the X chrominance component. A value usually ranging between 0 and 1.

public float X { get; }

Property Value

float

Y

Gets the Y chrominance component. A value usually ranging between 0 and 1.

public float Y { get; }

Property Value

float

Yl

Gets the Y luminance component. A value usually ranging between 0 and 1.

public float Yl { get; }

Property Value

float

Methods

Equals(CieXyy)

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

public bool Equals(CieXyy other)

Parameters

other CieXyy

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.

FromProfileConnectingSpace(ColorConversionOptions, in CieXyz)

Initializes the color instance from the profile connection space.

public static CieXyy FromProfileConnectingSpace(ColorConversionOptions options, in CieXyz source)

Parameters

options ColorConversionOptions

The color profile conversion options.

source CieXyz

The color profile connecting space.

Returns

CieXyy

The CieXyy.

FromProfileConnectionSpace(ColorConversionOptions, ReadOnlySpan<CieXyz>, Span<CieXyy>)

Converts the span of colors from the profile connection space.

public static void FromProfileConnectionSpace(ColorConversionOptions options, ReadOnlySpan<CieXyz> source, Span<CieXyy> destination)

Parameters

options ColorConversionOptions

The color profile conversion options.

source ReadOnlySpan<CieXyz>

The color profile span to convert from.

destination Span<CieXyy>

The color span to write the results to.

FromScaledVector4(Vector4)

Initializes the color instance from a generic a generic ("scaled") Vector4 representation with values scaled and clamped between 0 and 1.

public static CieXyy FromScaledVector4(Vector4 source)

Parameters

source Vector4

The vector to load the pixel from.

Returns

CieXyy

The CieXyy.

FromScaledVector4(ReadOnlySpan<Vector4>, Span<CieXyy>)

Converts the span of colors from a generic ("scaled") Vector4 representation with values scaled and clamped between 0 and 1.

public static void FromScaledVector4(ReadOnlySpan<Vector4> source, Span<CieXyy> destination)

Parameters

source ReadOnlySpan<Vector4>

The vector span to convert from.

destination Span<CieXyy>

The color span to write the results to.

GetChromaticAdaptionWhitePointSource()

Gets the chromatic adaption white point source.

public static ChromaticAdaptionWhitePointSource GetChromaticAdaptionWhitePointSource()

Returns

ChromaticAdaptionWhitePointSource

The ChromaticAdaptionWhitePointSource.

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.

ToProfileConnectingSpace(ColorConversionOptions)

Converts the color to the profile connection space.

public CieXyz ToProfileConnectingSpace(ColorConversionOptions options)

Parameters

options ColorConversionOptions

The color profile conversion options.

Returns

CieXyz

The CieXyz.

ToProfileConnectionSpace(ColorConversionOptions, ReadOnlySpan<CieXyy>, Span<CieXyz>)

Converts the span of colors to the profile connection space.

public static void ToProfileConnectionSpace(ColorConversionOptions options, ReadOnlySpan<CieXyy> source, Span<CieXyz> destination)

Parameters

options ColorConversionOptions

The color profile conversion options.

source ReadOnlySpan<CieXyy>

The color span to convert from.

destination Span<CieXyz>

The color profile span to write the results to.

ToScaledVector4()

Expands the pixel into a generic ("scaled") Vector4 representation with values scaled and clamped between 0 and 1. The vector components are typically expanded in least to greatest significance order.

public Vector4 ToScaledVector4()

Returns

Vector4

The Vector4.

ToScaledVector4(ReadOnlySpan<CieXyy>, Span<Vector4>)

Converts the span of colors to a generic ("scaled") Vector4 representation with values scaled and clamped between 0 and 1.

public static void ToScaledVector4(ReadOnlySpan<CieXyy> source, Span<Vector4> destination)

Parameters

source ReadOnlySpan<CieXyy>

The color span to convert from.

destination Span<Vector4>

The vector span to write the results to.

ToString()

Returns the fully qualified type name of this instance.

public override string ToString()

Returns

string

The fully qualified type name.

Operators

operator ==(CieXyy, CieXyy)

Compares two CieXyy objects for equality.

public static bool operator ==(CieXyy left, CieXyy right)

Parameters

left CieXyy

The CieXyy on the left side of the operand.

right CieXyy

The CieXyy on the right side of the operand.

Returns

bool

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

operator !=(CieXyy, CieXyy)

Compares two CieXyy objects for inequality.

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

Parameters

left CieXyy

The CieXyy on the left side of the operand.

right CieXyy

The CieXyy on the right side of the operand.

Returns

bool

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