|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.gregdennis.drej.Images
public final class Images
Utility class for manipulating images.
Method Summary | |
---|---|
static GVector |
imageData(java.awt.Image image)
Returns a vector of data from the specified image. |
static GVector |
imageData(java.awt.Image image,
int x,
int y,
int width,
int height)
Returns a vector of data from the (x, y, width, height) rectangular section of the specified image. |
static java.awt.Image |
imageFromFile(java.lang.String path)
Returns the image located at the specified path. |
static java.awt.Image |
imageFromURL(java.net.URL url)
Returns the image located at the specified URL. |
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 imageFromFile(java.lang.String path) throws java.io.FileNotFoundException, java.io.IOException, NotImageException
java.io.FileNotFoundException
- if file does not exist at path
java.io.IOException
- if error reading from file
NotImageException
- if file is not an imagepublic static java.awt.Image imageFromURL(java.net.URL url) throws java.io.IOException, NotImageException
java.io.IOException
- if error reading from URL
NotImageException
- if URL does not reference an imagepublic static GVector imageData(java.awt.Image image) throws NotImageException
NotImageException
- if image is emptypublic static GVector imageData(java.awt.Image image, int x, int y, int width, int height) throws NotImageException
NotImageException
- if image is empty
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |