public class MapColorsFilter extends PointFilter
Modifier and Type | Field and Description |
---|---|
private int |
newColor |
private int |
oldColor |
canFilterIndexColorModel
Constructor and Description |
---|
MapColorsFilter()
Construct a MapColorsFilter.
|
MapColorsFilter(int oldColor,
int newColor)
Construct a MapColorsFilter.
|
Modifier and Type | Method and Description |
---|---|
int |
filterRGB(int x,
int y,
int rgb) |
filter, setDimensions
clone, createCompatibleDestImage, getBounds2D, getPoint2D, getRenderingHints, getRGB, setRGB
public MapColorsFilter()
public MapColorsFilter(int oldColor, int newColor)
oldColor
- the color to replacenewColor
- the color to replace it withpublic int filterRGB(int x, int y, int rgb)
filterRGB
in class PointFilter
WebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses