public class PosterizeFilter extends PointFilter
Modifier and Type | Field and Description |
---|---|
private boolean |
initialized |
private int[] |
levels |
private int |
numLevels |
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.
|
String |
toString() |
filter, setDimensions
clone, createCompatibleDestImage, getBounds2D, getPoint2D, getRenderingHints, getRGB, setRGB
private int numLevels
private int[] levels
private boolean initialized
public PosterizeFilter()
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
WebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses