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