public class GifSequenceWriter
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected javax.imageio.ImageWriter |
gifWriter |
protected javax.imageio.metadata.IIOMetadata |
imageMetaData |
protected javax.imageio.ImageWriteParam |
imageWriteParam |
| Constructor and Description |
|---|
GifSequenceWriter(javax.imageio.stream.ImageOutputStream outputStream,
int timeBetweenFramesMS,
boolean loopContinuously)
Creates a new GifSequenceWriter
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close this GifSequenceWriter object.
|
void |
writeToSequence(java.awt.image.RenderedImage img) |
protected javax.imageio.ImageWriter gifWriter
protected javax.imageio.ImageWriteParam imageWriteParam
protected javax.imageio.metadata.IIOMetadata imageMetaData
public GifSequenceWriter(javax.imageio.stream.ImageOutputStream outputStream,
int timeBetweenFramesMS,
boolean loopContinuously)
throws java.io.IOException
outputStream - the ImageOutputStream to be written totimeBetweenFramesMS - the time between frames in millisecondsloopContinuously - wether the gif should loop repeatedlyjavax.imageio.IIOException - if no gif ImageWriters are foundjava.io.IOExceptionpublic void writeToSequence(java.awt.image.RenderedImage img)
throws java.io.IOException
java.io.IOExceptionpublic void close()
throws java.io.IOException
java.io.IOException