com.jhlabs.image

Class GlowFilter

Implemented Interfaces:
BufferedImageOp, Cloneable

public class GlowFilter
extends GaussianFilter

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

Field Summary

Fields inherited from class com.jhlabs.image.GaussianFilter

kernel, radius

Fields inherited from class com.jhlabs.image.ConvolveFilter

CLAMP_EDGES, WRAP_EDGES, ZERO_EDGES, alpha, kernel, premultiplyAlpha

Constructor Summary

GlowFilter()
Construct a filter with a null kernel.

Method Summary

BufferedImage
filter(BufferedImage src, BufferedImage dst)
float
getAmount()
Get the amount of glow.
void
setAmount(float amount)
Set the amount of glow.
String
toString()

Methods inherited from class com.jhlabs.image.GaussianFilter

convolveAndTranspose, filter, getRadius, makeKernel, setRadius, toString

Methods inherited from class com.jhlabs.image.ConvolveFilter

convolve, convolve, convolveH, convolveHV, convolveV, createCompatibleDestImage, filter, getBounds2D, getEdgeAction, getKernel, getPoint2D, getPremultiplyAlpha, getRenderingHints, getUseAlpha, setEdgeAction, setKernel, setPremultiplyAlpha, setUseAlpha, toString

Methods inherited from class com.jhlabs.image.AbstractBufferedImageOp

clone, createCompatibleDestImage, getBounds2D, getPoint2D, getRGB, getRenderingHints, setRGB

Constructor Details

GlowFilter

public GlowFilter()
Construct a filter with a null kernel. This is only useful if you're going to change the kernel later on.

Method Details

filter

public BufferedImage filter(BufferedImage src,
                            BufferedImage dst)
Overrides:
filter in interface GaussianFilter

getAmount

public float getAmount()
Get the amount of glow.
Returns:
the amount

setAmount

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

toString

public String toString()
Overrides:
toString in interface GaussianFilter