|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.raritantechnologies.utils.graphics.GifEncoder
Class for converting images to GIF files.
Contribution:
| Constructor Summary | |
GifEncoder(byte[][] r,
byte[][] g,
byte[][] b)
Create a GIF encoder. |
|
GifEncoder(java.awt.Image image)
Constructing a GIF encoder. |
|
| Method Summary | |
void |
write(java.io.OutputStream stream)
Writes the image out to a stream in GIF format. |
static void |
writeFile(java.awt.Component component,
java.io.File file)
Write AWT/Swing component to GIF file. |
static void |
writeFile(java.awt.Image image,
java.io.File file)
Write image to GIF file. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public GifEncoder(java.awt.Image image)
throws java.awt.AWTException
image - The image to encode. The image must be
completely loaded.
java.awt.AWTException - If memory is exhausted or image contains
more than 256 colors.
public GifEncoder(byte[][] r,
byte[][] g,
byte[][] b)
throws java.awt.AWTException
Create a GIF encoder.
r[i][j] refers to the pixel at column i, row j
r - Red intensity values.g - Green intensity values.b - Blue intensity values.
java.awt.AWTException - If memory is exhausted or image contains
more than 256 colors.| Method Detail |
public static void writeFile(java.awt.Image image,
java.io.File file)
throws java.awt.AWTException,
java.io.IOException
image - Image to write.file - File to erite to.
java.awt.AWTException
java.io.IOException
public static void writeFile(java.awt.Component component,
java.io.File file)
throws java.awt.AWTException,
java.io.IOException
file - File to erite to.
java.awt.AWTException
java.io.IOException
public void write(java.io.OutputStream stream)
throws java.io.IOException
stream - The stream to which to output.
java.io.IOException - Thrown if a write operation fails.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||