Package com.jhlabs.image
Class LookupFilter
java.lang.Object
com.jhlabs.image.AbstractBufferedImageOp
com.jhlabs.image.PointFilter
com.jhlabs.image.LookupFilter
- All Implemented Interfaces:
BufferedImageOp
,Cloneable
A filter which uses the brightness of each pixel to lookup a color from a colormap.
-
Field Summary
Fields inherited from class com.jhlabs.image.PointFilter
canFilterIndexColorModel
-
Constructor Summary
ConstructorsConstructorDescriptionConstruct a LookupFilter.LookupFilter
(Colormap colormap) Construct a LookupFilter. -
Method Summary
Modifier and TypeMethodDescriptionint
filterRGB
(int x, int y, int rgb) Get the colormap to be used for the filter.void
setColormap
(Colormap colormap) Set the colormap to be used for the filter.toString()
Methods inherited from class com.jhlabs.image.PointFilter
filter, setDimensions
Methods inherited from class com.jhlabs.image.AbstractBufferedImageOp
clone, createCompatibleDestImage, getBounds2D, getPoint2D, getRenderingHints, getRGB, setRGB
-
Constructor Details
-
LookupFilter
public LookupFilter()Construct a LookupFilter. -
LookupFilter
Construct a LookupFilter.- Parameters:
colormap
- the color map
-
-
Method Details
-
setColormap
Set the colormap to be used for the filter.- Parameters:
colormap
- the colormap- See Also:
-
getColormap
Get the colormap to be used for the filter.- Returns:
- the colormap
- See Also:
-
filterRGB
public int filterRGB(int x, int y, int rgb) - Specified by:
filterRGB
in classPointFilter
-
toString
-