# ColorData

public final class ColorData implements IColorData

Class describing colorimetry data

## Constructors

ColorData
Link copied to clipboard
public ColorData ColorData(@Size(value = 3) DoubleArray xyz, ReferenceWhite reference, ScanMode mode)

## Properties

colorInt
Link copied to clipboard
private final Integer colorInt

sRGB value for this color (as a ColorInt).

hexCode
Link copied to clipboard
private final String hexCode

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

mode
Link copied to clipboard
private final ScanMode mode

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

reference
Link copied to clipboard
private final ReferenceWhite reference

Reference white point for this color value.

rgbValue
Link copied to clipboard
private final IntArray rgbValue

sRGB value for this color.

type
Link copied to clipboard
private final IColorData.ColorType type

Type of color data stored in the value field.

value
Link copied to clipboard
private final DoubleArray value

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

## Functions

compareTo
Link copied to clipboard
public 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 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 ScanMode getMode()

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

getReference
Link copied to clipboard
public ReferenceWhite getReference()

Reference white point for this color value.

getRgbValue
Link copied to clipboard
public IntArray getRgbValue()

sRGB value for this color.

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

Type of color data stored in the value field.

getValue
Link copied to clipboard
public DoubleArray getValue()

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