|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ImageDecoder
ImageDecoder is an interface that classes used to decode different image formats should implement in order to be registered with the ImageRegistry.
| Method Summary | |
|---|---|
ImageTag |
defineImage(int identifier)
Create the image definition so it can be added to a movie. |
int |
getHeight()
Get the height of the image. |
byte[] |
getImage()
Get the array of bytes that make up the image. |
int |
getWidth()
Get the width of the image. |
void |
read(File file)
Read an image from a file. |
void |
read(InputStream stream)
Read an image from an input stream. |
void |
read(URL url)
Read an image from a file referenced by a URL. |
| Method Detail |
|---|
void read(File file)
throws IOException,
DataFormatException
file - the path to the file.
IOException - if there is an error reading the image data.
DataFormatException - if the file contains an unsupported format.
void read(URL url)
throws IOException,
DataFormatException
url - the reference to the file.
IOException - if there is an error reading the image data.
DataFormatException - if the file contains an unsupported format.
void read(InputStream stream)
throws IOException,
DataFormatException
stream - the stream used to read the image data.
IOException - if there is an error reading the image data.
DataFormatException - if the file contains an unsupported format.int getWidth()
int getHeight()
byte[] getImage()
ImageTag defineImage(int identifier)
identifier - the unique identifier used to refer to the image.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||