Package org.jdesktop.swingx.image
Class GaussianBlurFilter
- java.lang.Object
-
- org.jdesktop.beans.AbstractBean
-
- org.jdesktop.swingx.image.AbstractFilter
-
- org.jdesktop.swingx.image.GaussianBlurFilter
-
- All Implemented Interfaces:
BufferedImageOp
public class GaussianBlurFilter extends AbstractFilter
-
-
Constructor Summary
Constructors Constructor Description GaussianBlurFilter()
Creates a new blur filter with a default radius of 3.GaussianBlurFilter(int radius)
Creates a new blur filter with the specified radius.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BufferedImage
filter(BufferedImage src, BufferedImage dst)
int
getRadius()
Returns the radius used by this filter, in pixels.-
Methods inherited from class org.jdesktop.swingx.image.AbstractFilter
createCompatibleDestImage, getBounds2D, getPoint2D, getRenderingHints
-
Methods inherited from class org.jdesktop.beans.AbstractBean
addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, addVetoableChangeListener, clone, fireIndexedPropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, fireVetoableChange, getPropertyChangeListeners, getPropertyChangeListeners, getVetoableChangeListeners, getVetoableChangeListeners, hasPropertyChangeListeners, hasVetoableChangeListeners, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, removeVetoableChangeListener
-
-
-
-
Constructor Detail
-
GaussianBlurFilter
public GaussianBlurFilter()
Creates a new blur filter with a default radius of 3.
-
GaussianBlurFilter
public GaussianBlurFilter(int radius)
Creates a new blur filter with the specified radius. If the radius is lower than 0, a radius of 0.1 will be used automatically.
- Parameters:
radius
- the radius, in pixels, of the blur
-
-
Method Detail
-
getRadius
public int getRadius()
Returns the radius used by this filter, in pixels.
- Returns:
- the radius of the blur
-
filter
public BufferedImage filter(BufferedImage src, BufferedImage dst)
- Specified by:
filter
in interfaceBufferedImageOp
- Specified by:
filter
in classAbstractFilter
-
-