Table of Contents

Class IMeasurementDataExtensions

Namespace
NixUniversalSDK
Assembly
NixUniversalSDK.dll

Extension methogs for IMeasurementData

public static class IMeasurementDataExtensions
Inheritance
IMeasurementDataExtensions
Inherited Members

Methods

ProvidesColor(IMeasurementData, Illuminant, Observer)

Returns true if color data for the selected combination of illuminant and observer are available for this measurement.

public static bool ProvidesColor(this IMeasurementData data, Illuminant illuminant, Observer observer)

Parameters

data IMeasurementData
illuminant Illuminant
observer Observer

Returns

bool

ProvidesColor(IMeasurementData, ReferenceWhite)

Returns true if color data for the selected combination of illuminant and observer are available for this measurement.

public static bool ProvidesColor(this IMeasurementData data, ReferenceWhite reference)

Parameters

data IMeasurementData
reference ReferenceWhite

Returns

bool

ToColorData(IMeasurementData, Illuminant, Observer, ColorType)

Provides color data from this measurement for the specified illuminant and observer white point.

public static IColorData ToColorData(this IMeasurementData data, Illuminant illuminant = Illuminant.D50, Observer observer = Observer.CIE1931, ColorType type = ColorType.CIEXYZ)

Parameters

data IMeasurementData

Data instance

illuminant Illuminant

Selected reference illuminant (defaults to D50)

observer Observer

Selected reference observer (defaults to CIE1931)

type ColorType

Output color type (defaults to CIEXYZ)

Returns

IColorData

Color data, or null if the specified white point it not available for this measurement.

ToRgbValue(IMeasurementData, Illuminant, Observer)

Provides an sRGB value for this measurement for the specified illuminant and observer white point. Result is null if the specified white point is not available for this measurement.

public static byte[] ToRgbValue(this IMeasurementData data, Illuminant illuminant = Illuminant.D50, Observer observer = Observer.CIE1931)

Parameters

data IMeasurementData

Data instance

illuminant Illuminant

Selected reference illuminant (defaults to D50)

observer Observer

Selected reference observer (defaults to CIE1931)

Returns

byte[]

sRGB value

ToRgbValue(IMeasurementData, ReferenceWhite)

Provides an sRGB value for this measurement for the specified illuminant and observer white point. Result is null if the specified white point is not available for this measurement.

public static byte[] ToRgbValue(this IMeasurementData data, ReferenceWhite reference = ReferenceWhite.D50_2)

Parameters

data IMeasurementData

Data instance

reference ReferenceWhite

Selected reference white (defaults to D50_2)

Returns

byte[]

sRGB value