Package com.jhlabs.image
Class LensBlurFilter
- java.lang.Object
-
- com.jhlabs.image.AbstractBufferedImageOp
-
- com.jhlabs.image.LensBlurFilter
-
- All Implemented Interfaces:
java.awt.image.BufferedImageOp,java.lang.Cloneable
public class LensBlurFilter extends AbstractBufferedImageOp
A filter which use FFTs to simulate lens blur on an image
-
-
Constructor Summary
Constructors Constructor Description LensBlurFilter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.awt.image.BufferedImagefilter(java.awt.image.BufferedImage src, java.awt.image.BufferedImage dst)floatgetBloom()floatgetBloomThreshold()floatgetRadius()Get the radius of the kernel.intgetSides()voidsetBloom(float bloom)voidsetBloomThreshold(float bloomThreshold)voidsetRadius(float radius)Set the radius of the kernel, and hence the amount of blur.voidsetSides(int sides)java.lang.StringtoString()-
Methods inherited from class com.jhlabs.image.AbstractBufferedImageOp
clone, createCompatibleDestImage, getBounds2D, getPoint2D, getRenderingHints, getRGB, setRGB
-
-
-
-
Method Detail
-
setRadius
public void setRadius(float radius)
Set the radius of the kernel, and hence the amount of blur.- Parameters:
radius- the radius of the blur in pixels.
-
getRadius
public float getRadius()
Get the radius of the kernel.- Returns:
- the radius
-
setSides
public void setSides(int sides)
-
getSides
public int getSides()
-
setBloom
public void setBloom(float bloom)
-
getBloom
public float getBloom()
-
setBloomThreshold
public void setBloomThreshold(float bloomThreshold)
-
getBloomThreshold
public float getBloomThreshold()
-
filter
public java.awt.image.BufferedImage filter(java.awt.image.BufferedImage src, java.awt.image.BufferedImage dst)
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-