Class SVGConvolveOp

All Implemented Interfaces:
XMLConstants, ErrorConstants, SVGFilterConverter, SVGSyntax, CSSConstants, SVGConstants

public class SVGConvolveOp extends AbstractSVGFilterConverter
Utility class that converts a ConvolveOp object into an SVG filter descriptor.
Version:
$Id: SVGConvolveOp.java 1804130 2017-08-04 14:41:11Z ssteiner $
See Also:
  • Constructor Details

    • SVGConvolveOp

      public SVGConvolveOp(SVGGeneratorContext generatorContext)
      Parameters:
      generatorContext - used to build Elements
  • Method Details

    • toSVG

      public SVGFilterDescriptor toSVG(BufferedImageOp filter, Rectangle filterRect)
      Converts a Java 2D API BufferedImageOp into a set of attribute/value pairs and related definitions
      Parameters:
      filter - BufferedImageOp filter to be converted
      filterRect - Rectangle, in device space, that defines the area to which filtering applies. May be null, meaning that the area is undefined.
      Returns:
      descriptor of the attributes required to represent the input filter
      See Also:
    • toSVG

      public SVGFilterDescriptor toSVG(ConvolveOp convolveOp)
      Parameters:
      convolveOp - the ConvolveOp to be converted
      Returns:
      a description of the SVG filter corresponding to convolveOp. The definition of the feConvolveMatrix filter in put in feConvolveMatrixDefSet