Interface IColorData
Interface describing colorimetry data
Namespace: NixUniversalSDK
Assembly: NixUniversalSDK.dll
Syntax
public interface IColorData
Properties
Mode
Scan mode for this value.
Declaration
ScanMode Mode { get; }
Property Value
| Type | Description |
|---|---|
| ScanMode |
Reference
Reference white point for this color value.
Declaration
ReferenceWhite Reference { get; }
Property Value
| Type | Description |
|---|---|
| ReferenceWhite |
RgbValue
sRGB value for this color.
Declaration
byte[] RgbValue { get; }
Property Value
| Type | Description |
|---|---|
| byte[] |
Type
Type of color data stored in the Value field.
Declaration
ColorType Type { get; }
Property Value
| Type | Description |
|---|---|
| ColorType |
Value
Color value (3 coordinates) in the format specified by Type.
Declaration
double[] Value { get; }
Property Value
| Type | Description |
|---|---|
| double[] |
Methods
CompareTo(IColorData, ColorDifferenceType)
Calculate delta E between this color and another. The colors must share the same reference white point (Reference).
Declaration
double CompareTo(IColorData other, ColorDifferenceType type = ColorDifferenceType.CIE2000)
Parameters
| Type | Name | Description |
|---|---|---|
| IColorData | other | Another IColorData instance |
| ColorDifferenceType | type | Delta E equation type (defaults to CIE2000) |
Returns
| Type | Description |
|---|---|
| double | Color difference (delta E) value |
ConvertTo(ColorType)
Convert this color value to another ColorType.
Declaration
IColorData ConvertTo(ColorType type)
Parameters
| Type | Name | Description |
|---|---|---|
| ColorType | type |
Returns
| Type | Description |
|---|---|
| IColorData |