|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectview.GIFEncoder
public class GIFEncoder
GIFEncoder is a class which takes an image and saves it to a stream
using the GIF file format (Graphics Interchange
Format). A GIFEncoder
is constructed with either an AWT Image (which must be fully
loaded) or a set of RGB arrays. The image can be written out with a
call to Write.
Three caveats:
java.awt.AWTException: Grabber returned false: 192
GIFEncoder is based upon gifsave.c, which was written and released by:
Phone: +47 2 230539
sverrehu@ifi.uio.no
| Field Summary | |
|---|---|
(package private) byte[] |
colors_
|
(package private) short |
height_
|
(package private) ImageDescriptor |
id_
|
(package private) int |
numColors_
|
(package private) byte[] |
pixels_
|
(package private) ScreenDescriptor |
sd_
|
(package private) short |
width_
|
| Constructor Summary | |
|---|---|
GIFEncoder(byte[][] r,
byte[][] g,
byte[][] b)
|
|
GIFEncoder(Image image)
|
|
| Method Summary | |
|---|---|
(package private) void |
ToIndexedColor(byte[][] r,
byte[][] g,
byte[][] b)
|
void |
Write(OutputStream output)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
short width_
short height_
int numColors_
byte[] pixels_
byte[] colors_
ScreenDescriptor sd_
ImageDescriptor id_
| Constructor Detail |
|---|
public GIFEncoder(Image image)
throws AWTException
image -
AWTException
public GIFEncoder(byte[][] r,
byte[][] g,
byte[][] b)
throws AWTException
r - g - b -
AWTException| Method Detail |
|---|
public void Write(OutputStream output)
throws IOException
output -
IOException
void ToIndexedColor(byte[][] r,
byte[][] g,
byte[][] b)
throws AWTException
r - g - b -
AWTException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||