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
IMeasurementDatailluminant
Illuminantobserver
Observer
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
data
IMeasurementDatareference
ReferenceWhite
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
data
IMeasurementDataData instance
illuminant
IlluminantSelected reference illuminant (defaults to D50)
observer
ObserverSelected reference observer (defaults to CIE1931)
type
ColorTypeOutput 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
IMeasurementDataData instance
illuminant
IlluminantSelected reference illuminant (defaults to D50)
observer
ObserverSelected 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
IMeasurementDataData instance
reference
ReferenceWhiteSelected reference white (defaults to D50_2)
Returns
- byte[]
sRGB value