com.jhlabs.image
Class GlowFilter

java.lang.Object
  extended by com.jhlabs.image.AbstractBufferedImageOp
      extended by com.jhlabs.image.ConvolveFilter
          extended by com.jhlabs.image.GaussianFilter
              extended by com.jhlabs.image.GlowFilter
All Implemented Interfaces:
java.awt.image.BufferedImageOp, java.lang.Cloneable

public class GlowFilter
extends GaussianFilter

A filter which adds Gaussian blur to an image, producing a glowing effect.

Author:
Jerry Huxtable

Field Summary
 
Fields inherited from class com.jhlabs.image.GaussianFilter
kernel, radius
 
Fields inherited from class com.jhlabs.image.ConvolveFilter
alpha, CLAMP_EDGES, premultiplyAlpha, WRAP_EDGES, ZERO_EDGES
 
Constructor Summary
GlowFilter()
           
 
Method Summary
 java.awt.image.BufferedImage filter(java.awt.image.BufferedImage src, java.awt.image.BufferedImage dst)
           
 float getAmount()
          Get the amount of glow.
 void setAmount(float amount)
          Set the amount of glow.
 java.lang.String toString()
           
 
Methods inherited from class com.jhlabs.image.GaussianFilter
convolveAndTranspose, getRadius, makeKernel, setRadius
 
Methods inherited from class com.jhlabs.image.ConvolveFilter
convolve, convolve, convolveH, convolveHV, convolveV, createCompatibleDestImage, getBounds2D, getEdgeAction, getKernel, getPoint2D, getPremultiplyAlpha, getRenderingHints, getUseAlpha, setEdgeAction, setKernel, setPremultiplyAlpha, setUseAlpha
 
Methods inherited from class com.jhlabs.image.AbstractBufferedImageOp
clone, getRGB, setRGB
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GlowFilter

public GlowFilter()
Method Detail

setAmount

public void setAmount(float amount)
Set the amount of glow.

Parameters:
amount - the amount
See Also:
getAmount()

getAmount

public float getAmount()
Get the amount of glow.

Returns:
the amount
See Also:
setAmount(float)

filter

public java.awt.image.BufferedImage filter(java.awt.image.BufferedImage src,
                                           java.awt.image.BufferedImage dst)
Specified by:
filter in interface java.awt.image.BufferedImageOp
Overrides:
filter in class GaussianFilter

toString

public java.lang.String toString()
Overrides:
toString in class GaussianFilter