jwo.utils.gui
Class ImageUtils
java.lang.Object
jwo.utils.gui.ImageUtils
- public class ImageUtils
- extends Object
Collection of static image utilities.
- Version:
- 2.1, 10th August, 2004.
- Author:
- Jo Wood
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ImageUtils
public ImageUtils()
toBufferedImage
public static BufferedImage toBufferedImage(Image image)
- Creates a bufferedImage from the given Java image. Taken from Java Developer's
Almanac e667.
- Parameters:
image
- Image to convert.
- Returns:
- Buffered image representing the given input image.
hasAlpha
public static boolean hasAlpha(Image image)
- Determines whether or not a given image contains transparent pixels.
Taken from Java Developer's Almanac e661.
- Parameters:
image
- Image to test.
- Returns:
- True if image contains transparent pixels.
Copyright Jo Wood, 1996-2004, last modified, 3rd September, 2004