|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Title: PictureDream
Description: base definition of a picture
Copyright: Copyright (c) 2003 MRoc
Organisation: MRoc Audiosolutions
| Method Summary | |
void |
addListener(IPictureListener l)
adds the given IPictureListener |
int[] |
getData()
returns a reference to the internal 32 bit buffer |
int |
getHeight()
returns the picture height |
java.awt.Image |
getImage()
produces a image from the internal 32 bit buffer |
int |
getWidth()
returns the picture width |
boolean |
isValid()
returns the images state, false if no or a corrupted image was loaded, true if valid picture data is stored in the picture. |
void |
loadImage(java.lang.String fileName)
loads a image from file, gif or jpg, java std ;-) |
void |
process(IPictureProcessor processor)
uses the given processor to process the image data. |
void |
removeListener(IPictureListener l)
removes the given IPictureListener |
void |
reset()
resets the image |
void |
saveImage(java.lang.String fileName)
save a image as Windows Bitmap |
void |
setData(int[] data,
int width,
int height)
sets the picture data directly. the width and height must match the buffers length! |
| Method Detail |
public void reset()
public boolean isValid()
public void loadImage(java.lang.String fileName)
throws java.lang.Exception
fileName - - the filename of the picture to be loadedjava.lang.Exception -
public void saveImage(java.lang.String fileName)
throws java.lang.Exception
public void setData(int[] data,
int width,
int height)
data - - a 32 bit bufferwidth - - the picture widthheight - - the picture heightpublic int[] getData()
public java.awt.Image getImage()
public int getWidth()
public int getHeight()
public void process(IPictureProcessor processor)
processor - is the processor used tio process the image datapublic void addListener(IPictureListener l)
public void removeListener(IPictureListener l)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||