Class ImageUtil.AbstractFastScaler

    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      protected abstract int getImageScalingMethod()  
      java.awt.image.BufferedImage getScaledInstance​(java.awt.image.BufferedImage img, ScalingOptions opt)
      Convenience method that returns a scaled instance of the provided BufferedImage, taken from article on java.net by Chris Campbell http://today.java.net/pub/a/today/2007/04/03/perils-of-image-getscaledinstance.html.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • AbstractFastScaler

        AbstractFastScaler()
    • Method Detail

      • getScaledInstance

        public java.awt.image.BufferedImage getScaledInstance​(java.awt.image.BufferedImage img,
                                                              ScalingOptions opt)
        Description copied from interface: ImageUtil.Scaler
        Convenience method that returns a scaled instance of the provided BufferedImage, taken from article on java.net by Chris Campbell http://today.java.net/pub/a/today/2007/04/03/perils-of-image-getscaledinstance.html. Expects the image to be fully loaded (e.g. no need to wait for loading on requesting height or width.
        Specified by:
        getScaledInstance in interface ImageUtil.Scaler
        Parameters:
        img - the original image to be scaled
        opt - options
        Returns:
        a scaled version of the original BufferedImage
      • getImageScalingMethod

        protected abstract int getImageScalingMethod()