edu.northwestern.at.utils
Class ImageUtils

java.lang.Object
  extended by edu.northwestern.at.utils.ImageUtils

public class ImageUtils
extends java.lang.Object

Image utilities.

This static class provides various utility methods for manipulating images.


Constructor Summary
protected ImageUtils()
          Don't allow instantiation, do allow overrides.
 
Method Summary
static void makeGhost(java.awt.image.BufferedImage image)
          Makes a ghost image suitable for dragging.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImageUtils

protected ImageUtils()
Don't allow instantiation, do allow overrides.

Method Detail

makeGhost

public static void makeGhost(java.awt.image.BufferedImage image)
Makes a ghost image suitable for dragging.

All of the white pixels in the image are changed to transparent pixels. All other pixels have their intensity halved.

Parameters:
image - The buffered image.