gcspy.vis.utils
Class ImageUtils

java.lang.Object
  extended by gcspy.vis.utils.ImageUtils

public class ImageUtils
extends java.lang.Object

Utilities for image manipulation

Author:
Tony Printezis

Constructor Summary
ImageUtils()
           
 
Method Summary
static java.awt.image.BufferedImage cropImage(java.awt.image.BufferedImage image, int x, int y, int width, int height)
          Crop image
 
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

cropImage

public static java.awt.image.BufferedImage cropImage(java.awt.image.BufferedImage image,
                                                     int x,
                                                     int y,
                                                     int width,
                                                     int height)
Crop image

Parameters:
image - The image
x - x-cooordinate of the image origin
y - y-cooordinate of the image origin
width - The width to crop to
height - The height to crop to
Returns:
the cropped image