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,
ImageTypeSpecifier imageTypeSpecifier,
int timeBetweenFramesMS,
boolean loopContinuously)
Creates a new GifSequenceWriter
|
GifSequenceWriter(ImageOutputStream outputStream,
int imageType,
int timeBetweenFramesMS,
boolean loopContinuously)
Creates a new GifSequenceWriter
|
GifSequenceWriter(ImageOutputStream outputStream,
RenderedImage image,
int timeBetweenFramesMS,
boolean loopContinuously)
Creates a new GifSequenceWriter from an existing buffered image.
|
| 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, RenderedImage image, int timeBetweenFramesMS, boolean loopContinuously) throws IIOException, IOException
outputStream - the ImageOutputStream to be written toimage - the source image that will be written to the outputtimeBetweenFramesMS - the time between frames in milisecondsloopContinuously - wether the gif should loop repeatedlyIIOException - if no gif ImageWriters are foundIOExceptionpublic 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 foundIOExceptionpublic GifSequenceWriter(ImageOutputStream outputStream, ImageTypeSpecifier imageTypeSpecifier, int timeBetweenFramesMS, boolean loopContinuously) throws IIOException, IOException
outputStream - the ImageOutputStream to be written toimageTypeSpecifier - the type of images to be writtentimeBetweenFramesMS - the time between frames in milisecondsloopContinuously - wether the gif should loop repeatedlyIIOException - if no gif ImageWriters are foundIOExceptionpublic void writeToSequence(RenderedImage img) throws IOException
IOExceptionpublic void close()
throws IOException
IOExceptionCopyright © 2016. All rights reserved.