Class RotateScaleOpBitmapImpl

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

public class RotateScaleOpBitmapImpl extends AbstractTileOpImpl implements RotateScaleOp
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

    • RotateScaleOpBitmapImpl

      public RotateScaleOpBitmapImpl(ImageOp 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
    • RotateScaleOpBitmapImpl

      public RotateScaleOpBitmapImpl(ImageOp 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