|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object ImageStorage
public class ImageStorage
A utility class that can be used to load images from files and save images to files.
Constructor Summary | |
---|---|
ImageStorage()
|
Method Summary | |
---|---|
static java.awt.Color[][] |
loadImage(java.lang.String name)
Load an image from a file |
static void |
saveImage(java.awt.Color[][] pixels,
java.lang.String name)
Save an image to a file |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ImageStorage()
Method Detail |
---|
public static java.awt.Color[][] loadImage(java.lang.String name)
name
- The name of the file
public static void saveImage(java.awt.Color[][] pixels, java.lang.String name) throws java.io.IOException
pixels
- The image (i.e., the two-dimensional array of pixels)name
- The name of the file
java.io.IOException
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |