Class GaussianBlurFilter

  extended by org.jdesktop.beans.AbstractBean
      extended by org.jdesktop.swingx.image.AbstractFilter
          extended by org.jdesktop.swingx.image.GaussianBlurFilter
All Implemented Interfaces:

public class GaussianBlurFilter
extends AbstractFilter

Constructor Summary
          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
 BufferedImage filter(BufferedImage src, BufferedImage dst)
          Performs a single-input/single-output operation on a BufferedImage.
 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
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail


public GaussianBlurFilter()

Creates a new blur filter with a default radius of 3.


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.

radius - the radius, in pixels, of the blur
Method Detail


public int getRadius()

Returns the radius used by this filter, in pixels.

the radius of the blur


public BufferedImage filter(BufferedImage src,
                            BufferedImage dst)
Performs a single-input/single-output operation on a BufferedImage. If the color models for the two images do not match, a color conversion into the destination color model is performed. If the destination image is null, a BufferedImage with an appropriate ColorModel is created.

An IllegalArgumentException may be thrown if the source and/or destination image is incompatible with the types of images $ allowed by the class implementing this filter.

Specified by:
filter in interface BufferedImageOp
Specified by:
filter in class AbstractFilter
src - The BufferedImage to be filtered
dst - The BufferedImage in which to store the results$
The filtered BufferedImage.