public class GaussianBlurFilter extends AbstractFilter
Constructor and 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.
|
Modifier and Type | Method and Description |
---|---|
BufferedImage |
filter(BufferedImage src,
BufferedImage dst) |
int |
getRadius()
Returns the radius used by this filter, in pixels.
|
createCompatibleDestImage, getBounds2D, getPoint2D, getRenderingHints
addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, addVetoableChangeListener, clone, fireIndexedPropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, fireVetoableChange, getPropertyChangeListeners, getPropertyChangeListeners, getVetoableChangeListeners, getVetoableChangeListeners, hasPropertyChangeListeners, hasVetoableChangeListeners, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, removeVetoableChangeListener
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 1, a radius of 1 will be used automatically.
radius
- the radius, in pixels, of the blurpublic int getRadius()
Returns the radius used by this filter, in pixels.
public BufferedImage filter(BufferedImage src, BufferedImage dst)
filter
in interface BufferedImageOp
filter
in class AbstractFilter
Copyright © 2017. All rights reserved.