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
dataIMeasurementDatailluminantIlluminantobserverObserver
Returns
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
dataIMeasurementDatareferenceReferenceWhite
Returns
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
dataIMeasurementDataData instance
illuminantIlluminantSelected reference illuminant (defaults to D50)
observerObserverSelected reference observer (defaults to CIE1931)
typeColorTypeOutput color type (defaults to CIEXYZ)
Returns
- IColorData
Color data, or
nullif 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
dataIMeasurementDataData instance
illuminantIlluminantSelected reference illuminant (defaults to D50)
observerObserverSelected 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
dataIMeasurementDataData instance
referenceReferenceWhiteSelected reference white (defaults to D50_2)
Returns
- byte[]
sRGB value