Class RotateScaleOpSVGImpl

All Implemented Interfaces:
ImageOp, RotateOp, RotateScaleOp, ScaleOp, SourceOp, SVGOp, Op<BufferedImage>

public class RotateScaleOpSVGImpl extends AbstractTileOpImpl implements RotateScaleOp, SVGOp
An ImageOp which rotates and scales its source. Rotation is about the center of the source image, and scaling ranges from (0,Double.MAX_VALUE). If a source is to be both rotated and scaled, using one RotateScaleOp will produce better results than doing the rotation and scaling separately with one RotateOp and one ScaleOp.
Since:
3.1.0
Author:
Joel Uckelman
  • Constructor Details

    • RotateScaleOpSVGImpl

      public RotateScaleOpSVGImpl(SVGOp sop, double angle, double scale)
      Constructs an ImageOp which will rotate and scale the image produced by its source ImageOp.
      Parameters:
      sop - the source operation
      angle - the angle of rotation, in degrees
      scale - the scale factor
    • RotateScaleOpSVGImpl

      public RotateScaleOpSVGImpl(SVGOp sop, double angle, double scale, RenderingHints hints)
      Constructs an ImageOp which will rotate and scale the image produced by its source ImageOp.
      Parameters:
      sop - the source operation
      angle - the angle of rotation, in degrees
      scale - the scale factor
      hints - rendering hints
      Throws:
      IllegalArgumentException - if sop == null.
  • Method Details