org.autoplot.pngwalk.ImageResize

first from http://today.java.net/pub/a/today/2007/04/03/perils-of-image-getscaledinstance.html resize taken from http://www.componenthouse.com/article-20

ImageResize( )


logger


getScaledInstance

getScaledInstance( java.awt.image.BufferedImage img, int thumbSize ) → java.awt.image.BufferedImage

convenient typical use.

Parameters

img - image to resize.
thumbSize - corner-to-corner size, preserving aspect ratio.

Returns:

buffered image that is thumbSize across.

[search for examples] [view on GitHub] [view on old javadoc]

getScaledInstance( java.awt.image.BufferedImage img, int targetWidth, int targetHeight, Object hint, boolean higherQuality ) → java.awt.image.BufferedImage