Maven module :un.api : api-image :
Class : un.api.image.color.InterpolatedColorModel
Extends/Implements : un.api.image.color.AbstractColorModel
Subclasses : -

Interpolated color model.
Interpolate colors from a palette similar to a linear gradiant.
author  Johann Sorel


Variables : -
Functions : InterpolatedColorModel, getPalette, getSteps, toColor, toColorARGB, toSample, toSample



public void InterpolatedColorModel (int sampleType, Color[] palette, float[] steps)


Colors palette.
return  array never null, copy of the palette.
public Color[] getPalette ()


Colors steps.
return  array never null, copy of the steps.
public float[] getSteps ()

public Color toColor (Object sample)

public int toColorARGB (Object sample)

public Object toSample (Color color)

public Object toSample (int color)