dekoh.portal.fwk.image
Class FastImageResizer
java.lang.Object
dekoh.portal.fwk.image.AbstractImageResizer
dekoh.portal.fwk.image.FastImageResizer
- All Implemented Interfaces:
- ImageResizer
- Direct Known Subclasses:
- MultistepSmoothImageResizer
public class FastImageResizer
- extends AbstractImageResizer
An implementation of ImageResizer that targets speed of the resizing over the quality of
resizing. The quality deteriorates significantly if the new size is significantly smaller than the
original size.
- 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 |
FastImageResizer
public FastImageResizer()
resizeImage
public BufferedImage resizeImage(BufferedImage origImage,
int newWidth,
int newHeight)
- Description copied from class:
AbstractImageResizer
- The real implementation for image resizing to be provided by subclasses.
- Specified by:
resizeImage in class AbstractImageResizer
- Parameters:
origImage - The image read from the filenewWidth - The width of the resized image in keeping with the aspect rationewHeight - The height of the resized image in keeping with the aspect ratio
- Returns:
- the resized image
© 2009 Pramati Technologies - Dekoh - Portal for Developers