public class OilFilter extends WholeImageFilter
Modifier and Type | Field and Description |
---|---|
private int |
levels |
private int |
range |
originalSpace, transformedSpace
Constructor and Description |
---|
OilFilter() |
Modifier and Type | Method and Description |
---|---|
protected int[] |
filterPixels(int width,
int height,
int[] inPixels,
Rectangle transformedSpace)
Actually filter the pixels.
|
int |
getLevels()
Get the number of levels for the effect.
|
int |
getRange()
Get the range of the effect in pixels.
|
void |
setLevels(int levels)
Set the number of levels for the effect.
|
void |
setRange(int range)
Set the range of the effect in pixels.
|
String |
toString() |
filter, transformSpace
clone, createCompatibleDestImage, getBounds2D, getPoint2D, getRenderingHints, getRGB, setRGB
public OilFilter()
public void setRange(int range)
range
- the rangegetRange()
public int getRange()
setRange(int)
public void setLevels(int levels)
levels
- the number of levelsgetLevels()
public int getLevels()
setLevels(int)
protected int[] filterPixels(int width, int height, int[] inPixels, Rectangle transformedSpace)
WholeImageFilter
filterPixels
in class WholeImageFilter
width
- the image widthheight
- the image heightinPixels
- the image pixelstransformedSpace
- the output boundsWebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses