Class GaussianBlurRed8Bit
java.lang.Object
org.apache.batik.ext.awt.image.rendered.AbstractRed
org.apache.batik.ext.awt.image.rendered.GaussianBlurRed8Bit
- All Implemented Interfaces:
RenderedImage, CachableRed
This implementation of RenderableImage will render its input
GraphicsNode on demand for tiles.
-
Field Summary
Fields inherited from class AbstractRed
bounds, cm, minTileX, minTileY, numXTiles, numYTiles, props, sm, srcs, tileGridXOff, tileGridYOff, tileHeight, tileWidth -
Constructor Summary
ConstructorsConstructorDescriptionGaussianBlurRed8Bit(CachableRed src, double stdDevX, double stdDevY, RenderingHints rh) Construct a blurred version ofsrc, by blurring with a gaussian kernel with standard Deviation ofstdDevpixels.GaussianBlurRed8Bit(CachableRed src, double stdDev, RenderingHints rh) Construct a blurred version ofsrc, by blurring with a gaussian kernel with standard Deviation ofstdDevpixels. -
Method Summary
Modifier and TypeMethodDescriptionprotected 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.Methods inherited from class AbstractRed
copyBand, copyToRaster, getBounds, getColorModel, getData, getData, getDependencyRegion, getDirtyRegion, getHeight, getMinTileX, getMinTileY, getMinX, getMinY, getNumXTiles, getNumYTiles, getProperty, getPropertyNames, getSampleModel, getSources, getTile, getTileGridXOffset, getTileGridYOffset, getTileHeight, getTileWidth, getWidth, getXTile, getYTile, init, init, makeTile, updateTileGridInfo
-
Constructor Details
-
GaussianBlurRed8Bit
Construct a blurred version ofsrc, by blurring with a gaussian kernel with standard Deviation ofstdDevpixels.- Parameters:
src- The source image to blurstdDev- The Standard Deviation of the Gaussian kernel.rh- Rendering hints.
-
GaussianBlurRed8Bit
Construct a blurred version ofsrc, by blurring with a gaussian kernel with standard Deviation ofstdDevpixels.- Parameters:
src- The source image to blurstdDevX- The Standard Deviation of the Gaussian kernel in XstdDevY- The Standard Deviation of the Gaussian kernel in Yrh- Rendering hints.
-
-
Method Details
-
surroundPixels
public static int surroundPixels(double stdDev) Calculate the number of surround pixels required for a given standard Deviation. -
surroundPixels
Calculate the number of surround pixels required for a given standard Deviation. Also takes into account rendering quality hint. -
copyData
-
fixColorModel
-