public class PosterizeFilter extends PointFilter
canFilterIndexColorModel| Constructor and Description |
|---|
PosterizeFilter() |
| Modifier and Type | Method and Description |
|---|---|
int |
filterRGB(int x,
int y,
int rgb) |
int |
getNumLevels()
Get the number of levels in the output image.
|
protected void |
initialize()
Initialize the filter.
|
void |
setNumLevels(int numLevels)
Set the number of levels in the output image.
|
java.lang.String |
toString() |
filter, setDimensionsclone, createCompatibleDestImage, getBounds2D, getPoint2D, getRenderingHints, getRGB, setRGB, stringToColorpublic void setNumLevels(int numLevels)
numLevels - the number of levelsgetNumLevels()public int getNumLevels()
setNumLevels(int)protected void initialize()
public int filterRGB(int x,
int y,
int rgb)
filterRGB in class PointFilterpublic java.lang.String toString()
toString in class java.lang.Object