Package com.day.image

Class ResizeOp

All Implemented Interfaces:
BufferedImageOp

public class ResizeOp extends AbstractBufferedImageOp
The ResizeOp class implements a weighted resize filter which produces better results than the scaling AffineTransformOp and is faster than a blurring ConvolveOp with a following scaling AffineTransformOp.

The RenderingHints defined at construction time are used if the destination color model has to be adapted for the filter operation.

Note that the following constraints have to be met

  • The source and destination must be different.
Since:
coati
See Also:
  • Constructor Details

    • ResizeOp

      public ResizeOp(double scaleX, double scaleY, RenderingHints hints)
      Creates a new ResizeOp object.
      Parameters:
      scaleX - The horizontal scale factor
      scaleY - The vertical scale factor
      hints - The rendering hints. May be null.
    • ResizeOp

      public ResizeOp(double scaleX, double scaleY)
      Creates a new ResizeOp with no rendering hints.
      Parameters:
      scaleX - The horizontal scale factor
      scaleY - The vertical scale factor
    • ResizeOp

      public ResizeOp(double scale)
      Creates a new ResizeOp with no rendering hints and the same horizontal and vertical scale factor.
      Parameters:
      scale - The scale factor used for both horizontal and vertical scaling.
  • Method Details