Table of Contents

Struct CieXyz

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

Constructors

CieXyz(Vector3)

Initializes a new instance of the CieXyz struct.

public CieXyz(Vector3 vector)

Parameters

vector Vector3

The vector representing the x, y, z components.

CieXyz(float, float, float)

Initializes a new instance of the CieXyz struct.

public CieXyz(float x, float y, float z)

Parameters

x float

X is a mix (a linear combination) of cone response curves chosen to be nonnegative

y float

The y luminance component.

z float

Z is quasi-equal to blue stimulation, or the S cone of the human eye.

Properties

X

Gets the X component. A mix (a linear combination) of cone response curves chosen to be nonnegative. A value usually ranging between 0 and 1.

public float X { get; }

Property Value

float

Y

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

public float Y { get; }

Property Value

float

Z

Gets the Z component. Quasi-equal to blue stimulation, or the S cone response. A value usually ranging between 0 and 1.

public float Z { get; }

Property Value

float

Methods

Equals(CieXyz)

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

public bool Equals(CieXyz other)

Parameters

other CieXyz

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 CieXyz FromProfileConnectingSpace(ColorConversionOptions options, in CieXyz source)

Parameters

options ColorConversionOptions

The color profile conversion options.

source CieXyz

The color profile connecting space.

Returns

CieXyz

The CieXyz.

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

Converts the span of colors from the profile connection space.

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

Parameters

options ColorConversionOptions

The color profile conversion options.

source ReadOnlySpan<CieXyz>

The color profile span to convert from.

destination Span<CieXyz>

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 CieXyz FromScaledVector4(Vector4 source)

Parameters

source Vector4

The vector to load the pixel from.

Returns

CieXyz

The CieXyz.

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

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<CieXyz> destination)

Parameters

source ReadOnlySpan<Vector4>

The vector span to convert from.

destination Span<CieXyz>

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<CieXyz>, Span<CieXyz>)

Converts the span of colors to the profile connection space.

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

Parameters

options ColorConversionOptions

The color profile conversion options.

source ReadOnlySpan<CieXyz>

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<CieXyz>, 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<CieXyz> source, Span<Vector4> destination)

Parameters

source ReadOnlySpan<CieXyz>

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 ==(CieXyz, CieXyz)

Compares two CieXyz objects for equality.

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

Parameters

left CieXyz

The CieXyz on the left side of the operand.

right CieXyz

The CieXyz on the right side of the operand.

Returns

bool

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

operator !=(CieXyz, CieXyz)

Compares two CieXyz objects for inequality.

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

Parameters

left CieXyz

The CieXyz on the left side of the operand.

right CieXyz

The CieXyz on the right side of the operand.

Returns

bool

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