Dekoh platform API

dekoh.portal.fwk.image
Class MultistepSmoothImageResizer

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

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
MultistepSmoothImageResizer()
           
 
Method Summary
 BufferedImage resizeImage(BufferedImage origImage, int thumbWidth, int thumbHeight)
          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

MultistepSmoothImageResizer

public MultistepSmoothImageResizer()
Method Detail

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 file
thumbWidth - The width of the resized image in keeping with the aspect ratio
thumbHeight - 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