public class OilFilter extends WholeImageFilter
originalSpace, transformedSpace
Constructor and Description |
---|
OilFilter() |
Modifier and Type | Method and Description |
---|---|
protected int[] |
filterPixels(int width,
int height,
int[] inPixels,
java.awt.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.
|
java.lang.String |
toString() |
filter, transformSpace
clone, createCompatibleDestImage, getBounds2D, getPoint2D, getRenderingHints, getRGB, setRGB, stringToColor
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, java.awt.Rectangle transformedSpace)
WholeImageFilter
filterPixels
in class WholeImageFilter
width
- the image widthheight
- the image heightinPixels
- the image pixelstransformedSpace
- the output boundspublic java.lang.String toString()
toString
in class java.lang.Object