|
Copyright 2011-01-06 Werner Randelshofer | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectch.randelshofer.gui.image.Images
public class Images
Image processing methods.
| Method Summary | |
|---|---|
static java.awt.Image |
createImage(java.lang.Class baseClass,
java.lang.String location)
|
static java.awt.Image |
createImage(java.net.URL resource)
|
static boolean |
hasAlpha(java.awt.Image image)
This method returns true if the specified image has transparent pixels Code taken from the Java Developers Almanac 1.4 http://javaalmanac.com/egs/java.awt.image/HasAlpha.html |
static java.awt.image.BufferedImage[] |
split(java.awt.Image image,
int count,
boolean isHorizontal)
Splits an image into count subimages. |
static java.awt.image.BufferedImage |
toBufferedImage(java.awt.Image image)
|
static java.awt.image.BufferedImage |
toBufferedImage(java.awt.image.RenderedImage rImg)
Converts the image to a buffered image. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static java.awt.Image createImage(java.lang.Class baseClass,
java.lang.String location)
public static java.awt.Image createImage(java.net.URL resource)
public static java.awt.image.BufferedImage toBufferedImage(java.awt.image.RenderedImage rImg)
public static java.awt.image.BufferedImage toBufferedImage(java.awt.Image image)
public static boolean hasAlpha(java.awt.Image image)
public static java.awt.image.BufferedImage[] split(java.awt.Image image,
int count,
boolean isHorizontal)
|
Copyright 2011-01-06 Werner Randelshofer | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||