public class GifSequenceWriter extends Object
Modifier and Type | Field and Description |
---|---|
protected ImageWriter |
gifWriter |
protected IIOMetadata |
imageMetaData |
protected ImageWriteParam |
imageWriteParam |
Constructor and Description |
---|
GifSequenceWriter(ImageOutputStream outputStream,
int imageType,
int timeBetweenFramesMS,
boolean loopContinuously)
Creates a new GifSequenceWriter
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Close this GifSequenceWriter object.
|
static void |
main(String[] args)
public GifSequenceWriter( BufferedOutputStream outputStream, int
imageType, int timeBetweenFramesMS, boolean loopContinuously) {
|
void |
writeToSequence(RenderedImage img) |
protected ImageWriter gifWriter
protected ImageWriteParam imageWriteParam
protected IIOMetadata imageMetaData
public GifSequenceWriter(ImageOutputStream outputStream, int imageType, int timeBetweenFramesMS, boolean loopContinuously) throws IIOException, IOException
outputStream
- the ImageOutputStream to be written toimageType
- one of the imageTypes specified in BufferedImagetimeBetweenFramesMS
- the time between frames in milisecondsloopContinuously
- wether the gif should loop repeatedlyIIOException
- if no gif ImageWriters are foundIOException
public void writeToSequence(RenderedImage img) throws IOException
IOException
public void close() throws IOException
IOException
Copyright © 2019. All rights reserved.