|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.gatech.cs2335.lemmings.graphics.ImageLoader
Class ImageLoader: The image loader class provides the functionality for loading images from the hard drive or the web into BufferedImages.
Revision History:
v1.0 (Feb. 06, 2004) - Created the ImageLoader class
| Field Summary | |
static java.lang.String |
IMAGE_LOCATION
Contains the location for all of the system images. |
| Method Summary | |
java.awt.image.BufferedImage |
createBlankImage(int width,
int height)
Returns a hardware-accelerated blank image of the specified size. |
java.awt.GraphicsConfiguration |
getImageConfiguration()
Returns the graphics configuration used. |
static ImageLoader |
getInstance()
Singleton implementation. |
java.awt.image.BufferedImage |
loadImage(java.io.File src)
Loads the image from the file specified. |
java.awt.image.BufferedImage |
loadImage(java.net.URL path)
Loads the image from the specified URL. |
java.awt.image.BufferedImage |
loadLocalImage(java.lang.String imagePath)
Loads a local image for instance, for insertion into the graphics pane. |
java.awt.image.BufferedImage |
loadSystemImage(java.lang.String imageName)
Loads a system image from the standard location. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final java.lang.String IMAGE_LOCATION
| Method Detail |
public static ImageLoader getInstance()
ImageLoader valuepublic java.awt.GraphicsConfiguration getImageConfiguration()
GraphicsConfiguration valuepublic java.awt.image.BufferedImage loadImage(java.net.URL path)
path - an URL value
BufferedImage valuepublic java.awt.image.BufferedImage loadImage(java.io.File src)
src - a File value
BufferedImage valuepublic java.awt.image.BufferedImage loadLocalImage(java.lang.String imagePath)
imagePath - a String value
BufferedImage valuepublic java.awt.image.BufferedImage loadSystemImage(java.lang.String imageName)
imageName - a String value
BufferedImage value
public java.awt.image.BufferedImage createBlankImage(int width,
int height)
width - an int valueheight - an int value
BufferedImage value
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||