net.sf.image4j.util
Class ImageUtil

java.lang.Object
  extended by net.sf.image4j.util.ImageUtil

public class ImageUtil
extends java.lang.Object

Provides utility methods for handling images (java.awt.BufferedImage)

Author:
Ian McDonagh

Constructor Summary
ImageUtil()
           
 
Method Summary
static java.awt.image.BufferedImage scaleImage(java.awt.image.BufferedImage src, int width, int height)
          Creates a scaled copy of the source image.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImageUtil

public ImageUtil()
Method Detail

scaleImage

public static java.awt.image.BufferedImage scaleImage(java.awt.image.BufferedImage src,
                                                      int width,
                                                      int height)
Creates a scaled copy of the source image.

Parameters:
src - source image to be scaled
width - the width for the new scaled image in pixels
height - the height for the new scaled image in pixels
Returns:
a copy of the source image scaled to width x height pixels.