Interface ImageUtil.Scaler

All Known Implementing Classes:
ImageUtil.AbstractFastScaler, ImageUtil.AreaAverageScaler, ImageUtil.FastScaler, ImageUtil.HighQualityScaler, ImageUtil.OldScaler
Enclosing class:
ImageUtil

static interface ImageUtil.Scaler
  • Method Summary

    Modifier and Type
    Method
    Description
    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.
  • Method Details

    • getScaledInstance

      BufferedImage getScaledInstance(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. Expects the image to be fully loaded (e.g. no need to wait for loading on requesting height or width.
      Parameters:
      img - the original image to be scaled
      opt - options
      Returns:
      a scaled version of the original BufferedImage