SUMMARY:
java.lang.Object
org.apache.batik.svggen.AbstractSVGFilterConverter
org.apache.batik.svggen.SVGRescaleOp
- All Implemented Interfaces:
- ErrorConstants, SVGFilterConverter, SVGSyntax, CSSConstants, SVGConstants, XMLConstants
public class SVGRescaleOp
- extends AbstractSVGFilterConverter
Utility class that converts a RescaleOp object into
an SVG filter descriptor. The SVG filter corresponding
to a RescaleOp is an feComponentTransfer, with a type
set to 'linear', the slopes equal to the RescapeOp
scaleFactors and the intercept equal to the RescapeOp
offsets.
- See Also:
SVGBufferedImageOp
SVGRescaleOp
public SVGRescaleOp(SVGGeneratorContext generatorContext)
- Parameters:
generatorContext
- used to build Elements
toSVG
public SVGFilterDescriptor toSVG(java.awt.image.BufferedImageOp filter,
java.awt.Rectangle filterRect)
- Converts a Java 2D API BufferedImageOp into
a set of attribute/value pairs and related definitions
- Parameters:
filter
- BufferedImageOp filter to be convertedfilterRect
- 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:
SVGFilterDescriptor
toSVG
public SVGFilterDescriptor toSVG(java.awt.image.RescaleOp rescaleOp)
- Parameters:
rescaleOp
- the RescaleOp to be converted
- Returns:
- a description of the SVG filter corresponding to
rescaleOp. The definition of the feComponentTransfer
filter in put in feComponentTransferDefSet