public class GifSequenceWriter extends Object
Modifier and Type | Field and Description |
---|---|
protected ImageWriter |
gifWriter
The Gif writer.
|
protected IIOMetadata |
imageMetaData
The Image meta data.
|
protected ImageWriteParam |
imageWriteParam
The Image getCudaPtr param.
|
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 |
write(File gif,
int timeBetweenFramesMS,
boolean loopContinuously,
BufferedImage... images)
Write.
|
void |
writeToSequence(RenderedImage img)
Write to sequence.
|
protected ImageWriter gifWriter
protected ImageWriteParam imageWriteParam
protected IIOMetadata imageMetaData
public GifSequenceWriter(ImageOutputStream outputStream, int imageType, int timeBetweenFramesMS, boolean loopContinuously) throws 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 repeatedlyIOException
- the io exceptionpublic static void write(File gif, int timeBetweenFramesMS, boolean loopContinuously, @Nonnull BufferedImage... images) throws IOException
gif
- the giftimeBetweenFramesMS
- the time between frames msloopContinuously
- the loop continuouslyimages
- the imagesIOException
- the io exceptionpublic void writeToSequence(@Nonnull RenderedImage img) throws IOException
img
- the imgIOException
- the io exceptionpublic void close() throws IOException
IOException
- the io exceptionCopyright © 2019 SimiaCryptus Software. All rights reserved.