|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjwo.utils.gui.BMPHandler
public class BMPHandler
Handles Windows .bmp (bitmap) files
| Constructor Summary | |
|---|---|
BMPHandler()
Initialises the bitmap handler. |
|
| Method Summary | |
|---|---|
boolean |
saveImage(String fileName,
byte[] imageArray,
int imgWidth,
int imgHeight)
Saves the given array of 24 bit colours as a bitmap file with the given name and dimensions. |
boolean |
saveImage(String fileName,
Image image)
Saves the given image as a bitmap file with the given name. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BMPHandler()
| Method Detail |
|---|
public boolean saveImage(String fileName,
Image image)
saveImage in interface ImageHandlerfileName - Name of bitmap file to save.image - Image to save as a bitmap.
public boolean saveImage(String fileName,
byte[] imageArray,
int imgWidth,
int imgHeight)
saveImage in interface ImageHandlerfileName - Name of image file to save.imageArray - BGR colours stored in byte array (3 bytes per colour).imgWidth - Width of image to save.imgHeight - Height of image to save.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||