Package com.openhtmltopdf.util
Class ImageUtil.AbstractFastScaler
java.lang.Object
com.openhtmltopdf.util.ImageUtil.AbstractFastScaler
- All Implemented Interfaces:
ImageUtil.Scaler
- Direct Known Subclasses:
ImageUtil.AreaAverageScaler,ImageUtil.OldScaler
- Enclosing class:
ImageUtil
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract intgetScaledInstance(BufferedImage img, ScalingOptions opt) Convenience method that returns a scaled instance of the providedBufferedImage, taken from article on java.net by Chris Campbell http://today.java.net/pub/a/today/2007/04/03/perils-of-image-getscaledinstance.html.
-
Constructor Details
-
AbstractFastScaler
AbstractFastScaler()
-
-
Method Details
-
getScaledInstance
Description copied from interface:ImageUtil.ScalerConvenience method that returns a scaled instance of the providedBufferedImage, 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:
getScaledInstancein interfaceImageUtil.Scaler- Parameters:
img- the original image to be scaledopt- options- Returns:
- a scaled version of the original
BufferedImage
-
getImageScalingMethod
protected abstract int getImageScalingMethod()
-