Class ScaleFilter

  • All Implemented Interfaces:
    java.awt.image.BufferedImageOp, java.lang.Cloneable

    public class ScaleFilter
    extends AbstractBufferedImageOp
    Scales an image using the area-averaging algorithm, which can't be done with AffineTransformOp.
    • Constructor Detail

      • ScaleFilter

        public ScaleFilter()
        Construct a ScaleFilter.
      • ScaleFilter

        public ScaleFilter​(int width,
                           int height)
        Construct a ScaleFilter.
        Parameters:
        width - the width to scale to
        height - the height to scale to
    • Method Detail

      • filter

        public java.awt.image.BufferedImage filter​(java.awt.image.BufferedImage src,
                                                   java.awt.image.BufferedImage dst)
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object