dekoh.portal.fwk.image
Class MultistepSmoothImageResizer
java.lang.Object
dekoh.portal.fwk.image.AbstractImageResizer
dekoh.portal.fwk.image.FastImageResizer
dekoh.portal.fwk.image.MultistepSmoothImageResizer
- All Implemented Interfaces:
- ImageResizer
public class MultistepSmoothImageResizer
- extends FastImageResizer
An implementation of ImageResizer that focuses on generating good quality resized images.
If the image is too large, it resizes it in two steps, first it uses FastImageResizer to
resize to MultistepSmoothImageResizer.LOSSLESS_COMPRESSION_THRESHOLD times the target image, then it resizes this image
using smooth transformations.
- Since:
- Jan 3, 2007
| Methods inherited from class dekoh.portal.fwk.image.AbstractImageResizer |
getImageReader, getImageType, readImage, resize, resize, resize, resizeAndReturn, resizeAndSaveBufferedImage, resizeToSize, toBufferedImage, toBufferedImage |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MultistepSmoothImageResizer
public MultistepSmoothImageResizer()
resizeImage
public BufferedImage resizeImage(BufferedImage origImage,
int thumbWidth,
int thumbHeight)
- Description copied from class:
AbstractImageResizer
- The real implementation for image resizing to be provided by subclasses.
- Overrides:
resizeImage in class FastImageResizer
- Parameters:
origImage - The image read from the filethumbWidth - The width of the resized image in keeping with the aspect ratiothumbHeight - The height of the resized image in keeping with the aspect ratio
- Returns:
- the resized image
© 2009 Pramati Technologies - Dekoh - Portal for Developers