Class LensBlurFilter

All Implemented Interfaces:
BufferedImageOp, Cloneable

public class LensBlurFilter extends AbstractBufferedImageOp
A filter which use FFTs to simulate lens blur on an image
  • Constructor Details

    • LensBlurFilter

      public LensBlurFilter()
  • Method Details

    • 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 BufferedImage filter(BufferedImage src, BufferedImage dst)
    • toString

      public String toString()
      Overrides:
      toString in class Object