Package com.jhlabs.image
Class OilFilter
java.lang.Object
com.jhlabs.image.AbstractBufferedImageOp
com.jhlabs.image.WholeImageFilter
com.jhlabs.image.OilFilter
- All Implemented Interfaces:
BufferedImageOp
,Cloneable
A filter which produces a "oil-painting" effect.
-
Field Summary
Fields inherited from class com.jhlabs.image.WholeImageFilter
originalSpace, transformedSpace
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected int[]
filterPixels
(int width, int height, int[] inPixels, Rectangle transformedSpace) Actually filter the pixels.int
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.toString()
Methods inherited from class com.jhlabs.image.WholeImageFilter
filter, transformSpace
Methods inherited from class com.jhlabs.image.AbstractBufferedImageOp
clone, createCompatibleDestImage, getBounds2D, getPoint2D, getRenderingHints, getRGB, setRGB
-
Constructor Details
-
OilFilter
public OilFilter()
-
-
Method Details
-
setRange
public void setRange(int range) Set the range of the effect in pixels.- Parameters:
range
- the range- See Also:
-
getRange
public int getRange()Get the range of the effect in pixels.- Returns:
- the range
- See Also:
-
setLevels
public void setLevels(int levels) Set the number of levels for the effect.- Parameters:
levels
- the number of levels- See Also:
-
getLevels
public int getLevels()Get the number of levels for the effect.- Returns:
- the number of levels
- See Also:
-
filterPixels
Description copied from class:WholeImageFilter
Actually filter the pixels.- Specified by:
filterPixels
in classWholeImageFilter
- Parameters:
width
- the image widthheight
- the image heightinPixels
- the image pixelstransformedSpace
- the output bounds- Returns:
- the output pixels
-
toString
-