com.jhlabs.image

Interface Colormap

Known Implementing Classes:
ArrayColormap, Gradient, GrayscaleColormap, LinearColormap, SpectrumColormap, SplineColormap

public interface Colormap

An interface for color maps. These are passed to filters which convert gray values to colors. This is similar to the ColorModel class but works with floating point values.

Method Summary

int
getColor(float v)
Convert a value in the range 0..1 to an RGB color.

Method Details

getColor

public int getColor(float v)
Convert a value in the range 0..1 to an RGB color.
Parameters:
v - a value in the range 0..1
Returns:
an RGB color