org.apache.batik.ext.awt.image.rendered

Class GaussianBlurRed8Bit

public class GaussianBlurRed8Bit extends AbstractRed

This implementation of RenderableImage will render its input GraphicsNode on demand for tiles.
Constructor Summary
GaussianBlurRed8Bit(CachableRed src, double stdDev, RenderingHints rh)
Construct a blurred version of src, by blurring with a gaussian kernel with standard Deviation of stdDev pixels.
GaussianBlurRed8Bit(CachableRed src, double stdDevX, double stdDevY, RenderingHints rh)
Construct a blurred version of src, by blurring with a gaussian kernel with standard Deviation of stdDev pixels.
Method Summary
WritableRastercopyData(WritableRaster wr)
protected static ColorModelfixColorModel(CachableRed src)
static intsurroundPixels(double stdDev)
Calculate the number of surround pixels required for a given standard Deviation.
static intsurroundPixels(double stdDev, RenderingHints hints)
Calculate the number of surround pixels required for a given standard Deviation.

Constructor Detail

GaussianBlurRed8Bit

public GaussianBlurRed8Bit(CachableRed src, double stdDev, RenderingHints rh)
Construct a blurred version of src, by blurring with a gaussian kernel with standard Deviation of stdDev pixels.

Parameters: src The source image to blur stdDev The Standard Deviation of the Gaussian kernel. rh Rendering hints.

GaussianBlurRed8Bit

public GaussianBlurRed8Bit(CachableRed src, double stdDevX, double stdDevY, RenderingHints rh)
Construct a blurred version of src, by blurring with a gaussian kernel with standard Deviation of stdDev pixels.

Parameters: src The source image to blur stdDevX The Standard Deviation of the Gaussian kernel in X stdDevY The Standard Deviation of the Gaussian kernel in Y rh Rendering hints.

Method Detail

copyData

public WritableRaster copyData(WritableRaster wr)

fixColorModel

protected static ColorModel fixColorModel(CachableRed src)

surroundPixels

public static int surroundPixels(double stdDev)
Calculate the number of surround pixels required for a given standard Deviation.

surroundPixels

public static int surroundPixels(double stdDev, RenderingHints hints)
Calculate the number of surround pixels required for a given standard Deviation. Also takes into account rendering quality hint.
Copyright B) 2007 Apache Software Foundation. All Rights Reserved.