Class GifSequenceWriter


  • public class GifSequenceWriter
    extends Object
    • Constructor Detail

      • GifSequenceWriter

        public GifSequenceWriter​(ImageOutputStream outputStream,
                                 int imageType,
                                 int timeBetweenFramesMS,
                                 boolean loopContinuously)
                          throws IIOException,
                                 IOException
        Creates a new GifSequenceWriter
        Parameters:
        outputStream - the ImageOutputStream to be written to
        imageType - one of the imageTypes specified in BufferedImage
        timeBetweenFramesMS - the time between frames in miliseconds
        loopContinuously - wether the gif should loop repeatedly
        Throws:
        IIOException - if no gif ImageWriters are found
        IOException
    • Method Detail

      • close

        public void close()
                   throws IOException
        Close this GifSequenceWriter object. This does not close the underlying stream, just finishes off the GIF.
        Throws:
        IOException
      • main

        public static void main​(String[] args)
                         throws Exception
        public GifSequenceWriter( BufferedOutputStream outputStream, int imageType, int timeBetweenFramesMS, boolean loopContinuously) {
        Throws:
        Exception