Dekoh platform API

dekoh.portal.fwk.image
Class FastImageResizer

java.lang.Object
  extended by dekoh.portal.fwk.image.AbstractImageResizer
      extended by 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

Nested Class Summary
 
Nested classes/interfaces inherited from class dekoh.portal.fwk.image.AbstractImageResizer
AbstractImageResizer.ImageWithReader
 
Field Summary
 
Fields inherited from interface dekoh.portal.fwk.image.ImageResizer
DEFAULT_COMPRESSION_QUALITY
 
Constructor Summary
FastImageResizer()
           
 
Method Summary
 BufferedImage resizeImage(BufferedImage origImage, int newWidth, int newHeight)
          The real implementation for image resizing to be provided by subclasses.
 
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
 

Constructor Detail

FastImageResizer

public FastImageResizer()
Method Detail

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 file
newWidth - The width of the resized image in keeping with the aspect ratio
newHeight - The height of the resized image in keeping with the aspect ratio
Returns:
the resized image

Dekoh platform API

© 2009 Pramati Technologies - Dekoh - Portal for Developers