Class GifSequenceWriter

java.lang.Object
com.hypixel.hytale.worldgen.noiseviewer.util.GifSequenceWriter

public class GifSequenceWriter extends Object
  • Constructor Details

    • GifSequenceWriter

      public GifSequenceWriter(ImageOutputStream outputStream, int imageType, int timeBetweenFramesMS, boolean loopContinuously) throws 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 Details

    • writeToSequence

      public void writeToSequence(@Nonnull RenderedImage img) throws IOException
      Throws:
      IOException
    • 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(@Nonnull String[] args) throws Exception
      public GifSequenceWriter( BufferedOutputStream outputStream, int imageType, int timeBetweenFramesMS, boolean loopContinuously) {
      Throws:
      Exception