com.jhlabs.image
Class OilFilter
- BufferedImageOp, Cloneable
A filter which produces a "oil-painting" effect.
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()
|
OilFilter
public OilFilter()
Construct a WholeImageFilter.
filterPixels
protected int[] filterPixels(int width,
int height,
int[] inPixels,
Rectangle transformedSpace)
Actually filter the pixels.
- filterPixels in interface WholeImageFilter
width
- the image widthheight
- the image heightinPixels
- the image pixelstransformedSpace
- the output bounds
getLevels
public int getLevels()
Get the number of levels for the effect.
getRange
public int getRange()
Get the range of the effect in pixels.
setLevels
public void setLevels(int levels)
Set the number of levels for the effect.
levels
- the number of levels
setRange
public void setRange(int range)
Set the range of the effect in pixels.
toString
public String toString()