de.laures.cewolf.util
Class ImageHelper
java.lang.Object
de.laures.cewolf.util.ImageHelper
public class ImageHelper
- extends java.lang.Object
Some simple image rendering helper methods.
- Author:
- Guido Laures
Field Summary |
private static java.awt.Component |
comp
|
private static org.apache.commons.logging.Log |
log
|
private static java.awt.MediaTracker |
tracker
|
Constructor Summary |
private |
ImageHelper()
Creates a new instance of ImageHelper |
Method Summary |
static java.awt.image.BufferedImage |
createImage(int width,
int height)
|
static boolean |
hasAlpha(java.awt.Image image)
|
static java.awt.image.BufferedImage |
loadBufferedImage(java.lang.String fileName)
|
static java.awt.Image |
loadImage(java.lang.String fileName)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
comp
private static final java.awt.Component comp
tracker
private static final java.awt.MediaTracker tracker
log
private static final org.apache.commons.logging.Log log
ImageHelper
private ImageHelper()
- Creates a new instance of ImageHelper
loadImage
public static final java.awt.Image loadImage(java.lang.String fileName)
loadBufferedImage
public static java.awt.image.BufferedImage loadBufferedImage(java.lang.String fileName)
hasAlpha
public static boolean hasAlpha(java.awt.Image image)
createImage
public static java.awt.image.BufferedImage createImage(int width,
int height)