|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.batik.ext.awt.image.rendered.MorphologyOp
public class MorphologyOp
This class provides an implementation for the SVG feMorphology filter, as defined in Chapter 15, section 20 of the SVG specification.
Constructor Summary | |
---|---|
MorphologyOp(int radiusX,
int radiusY,
boolean doDilation)
|
Method Summary | |
---|---|
BufferedImage |
createCompatibleDestImage(BufferedImage src,
ColorModel destCM)
|
WritableRaster |
createCompatibleDestRaster(Raster src)
|
BufferedImage |
filter(BufferedImage src,
BufferedImage dest)
This implementation of filter does the morphology operation on a premultiplied alpha image. |
WritableRaster |
filter(Raster src,
WritableRaster dest)
Filters src and writes result into dest. |
Rectangle2D |
getBounds2D(BufferedImage src)
|
Rectangle2D |
getBounds2D(Raster src)
|
Point2D |
getPoint2D(Point2D srcPt,
Point2D destPt)
|
RenderingHints |
getRenderingHints()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MorphologyOp(int radiusX, int radiusY, boolean doDilation)
radiusX
- defines the radius of filter operation on X-axis. Should not be negative.
A value of zero will disable the effect of the operation on X-axis, as described
in the SVG specification.radiusY
- defines the radius of filter operation on Y-axis. Should not be negative.
A value of zero will disable the effect of the operation on Y-axis, as described
in the SVG specification.doDilation
- defines whether to do dilation or erosion operation. Will do dilation
when the value is true, erosion when false.Method Detail |
---|
public Rectangle2D getBounds2D(Raster src)
getBounds2D
in interface RasterOp
public Rectangle2D getBounds2D(BufferedImage src)
getBounds2D
in interface BufferedImageOp
public Point2D getPoint2D(Point2D srcPt, Point2D destPt)
getPoint2D
in interface BufferedImageOp
getPoint2D
in interface RasterOp
public RenderingHints getRenderingHints()
getRenderingHints
in interface BufferedImageOp
getRenderingHints
in interface RasterOp
public WritableRaster createCompatibleDestRaster(Raster src)
createCompatibleDestRaster
in interface RasterOp
public BufferedImage createCompatibleDestImage(BufferedImage src, ColorModel destCM)
createCompatibleDestImage
in interface BufferedImageOp
public WritableRaster filter(Raster src, WritableRaster dest)
The filtering kernel(the operation range for each pixel) is a rectangle of width 2*radiusX+1 and height radiusY+1
filter
in interface RasterOp
src
- the Raster to be filtereddest
- stores the filtered image. If null, a destination will
be created. src and dest can refer to the same Raster, in
which situation the src will be modified.public BufferedImage filter(BufferedImage src, BufferedImage dest)
filter
in interface BufferedImageOp
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |