net.semanticmetadata.lire.utils
Class ImageUtils

java.lang.Object
  extended by net.semanticmetadata.lire.utils.ImageUtils

public class ImageUtils
extends java.lang.Object

Some little helper methods.
This file is part of the Caliph and Emir project: http://www.SemanticMetadata.net
Date: 02.02.2006
Time: 23:33:36

Author:
Mathias Lux, mathias@juggle.at

Constructor Summary
ImageUtils()
           
 
Method Summary
static java.awt.image.BufferedImage scaleImage(java.awt.image.BufferedImage image, int maxSideLength)
          Scales down an image into a box of maxSideLenght x maxSideLength.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImageUtils

public ImageUtils()
Method Detail

scaleImage

public static java.awt.image.BufferedImage scaleImage(java.awt.image.BufferedImage image,
                                                      int maxSideLength)
Scales down an image into a box of maxSideLenght x maxSideLength.

Parameters:
image - the image to scale down. It remains untouched.
maxSideLength - the maximum side length of the scaled down instance. Has to be > 0.
Returns:
the scaled image, the