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, setDimensions
clone, createCompatibleDestImage, getBounds2D, getPoint2D, getRenderingHints, getRGB, setRGB, stringToColor
public 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 PointFilter
public java.lang.String toString()
toString
in class java.lang.Object