# IColorData

public interface IColorData

Interface describing colorimetry data

#### Inheritors

ColorData

## Types

ColorDifferenceType
Link copied to clipboard
public enum ColorDifferenceType extends Enum<IColorData.ColorDifferenceType>

Enum describing the available color difference (delta E) equations.

ColorType
Link copied to clipboard
public enum ColorType extends Enum<IColorData.ColorType>

Enum to describe the base color data types available for IColorData objects. Values for each of these types can be freely converted to each other without loss of color data.

## Functions

compareTo
Link copied to clipboard
public abstract Double compareTo(IColorData other, IColorData.ColorDifferenceType type)

Calculate delta E between this color and another. The colors must share the same reference white point (reference)

convertTo
Link copied to clipboard
public abstract IColorData convertTo(IColorData.ColorType type)

Convert this color value to another ColorType.

getColorInt
Link copied to clipboard
@ColorInt()
public Integer getColorInt()

sRGB value for this color (as a ColorInt).

getHexCode
Link copied to clipboard
public String getHexCode()

sRGB value for this color as a HEX string (#RRGGBB)

getMode
Link copied to clipboard
public abstract ScanMode getMode()

Scan mode for this value (one of ScanMode.M0, ScanMode.M1, or ScanMode.M2).

getReference
Link copied to clipboard
public abstract ReferenceWhite getReference()

Reference white point for this color value.

getRgbValue
Link copied to clipboard
public abstract IntArray getRgbValue()

sRGB value for this color.

getType
Link copied to clipboard
public abstract IColorData.ColorType getType()

Type of color data stored in the value field.

getValue
Link copied to clipboard
public abstract DoubleArray getValue()

Color value (3 coordinates) in the format specified by mode.