Class MorphologyOp

java.lang.Object
org.apache.batik.ext.awt.image.rendered.MorphologyOp
All Implemented Interfaces:
BufferedImageOp, RasterOp

public class MorphologyOp extends Object implements BufferedImageOp, RasterOp
This class provides an implementation for the SVG feMorphology filter, as defined in Chapter 15, section 20 of the SVG specification.
  • Constructor Details

    • MorphologyOp

      public MorphologyOp(int radiusX, int radiusY, boolean doDilation)
      Parameters:
      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 Details