Table of Contents

Class ReferenceWhiteExtensions

Namespace
NixUniversalSDK
Assembly
NixUniversalSDK.dll

Extensions for the ReferenceWhite enum.

public static class ReferenceWhiteExtensions
Inheritance
ReferenceWhiteExtensions
Inherited Members

Methods

GetFullName(ReferenceWhite)

Full name for display in UI (e.g. - 'D50/2°' for D50_2)

public static string GetFullName(this ReferenceWhite reference)

Parameters

reference ReferenceWhite

Returns

string

GetIlluminant(ReferenceWhite)

Illuminant for the selected reference white

public static Illuminant GetIlluminant(this ReferenceWhite reference)

Parameters

reference ReferenceWhite

Returns

Illuminant

GetObserver(ReferenceWhite)

Observer for the selected reference white

public static Observer GetObserver(this ReferenceWhite reference)

Parameters

reference ReferenceWhite

Returns

Observer

GetReferenceWhite(ushort)

Helper to provide the ReferenceWhite enum for a particular reference ID. If an invalid ID is provided, Empty is returned.

public static ReferenceWhite GetReferenceWhite(this ushort value)

Parameters

value ushort

Integer value of the reference

Returns

ReferenceWhite

ReferenceWhite enum value corresponding to the provided ID

GetXYZ(ReferenceWhite)

CIEXYZ value for the selected reference white point

public static double[] GetXYZ(this ReferenceWhite reference)

Parameters

reference ReferenceWhite

Returns

double[]

Select(Illuminant, Observer)

Helper to provide the ReferenceWhite enum for a combination of Illuminant and Observer.

public static ReferenceWhite Select(Illuminant illuminant, Observer observer)

Parameters

illuminant Illuminant

Selected illuminant

observer Observer

Selected observer

Returns

ReferenceWhite

ReferenceWhite enum value corresponding to the provided illuminant and observer