kcl.waterloo.deploy.gif
Class GifSequenceWriter
- java.lang.Object
-
- kcl.waterloo.deploy.gif.GifSequenceWriter
-
- Direct Known Subclasses:
- GJGifSequencer
public class GifSequenceWriter extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor and Description GifSequenceWriter(javax.imageio.stream.ImageOutputStream outputStream, int timeBetweenFramesMS, boolean loopContinuously)Creates a new GifSequenceWriter
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidclose()Close this GifSequenceWriter object.voidwriteToSequence(java.awt.image.RenderedImage img)
-
-
-
Constructor Detail
-
GifSequenceWriter
public GifSequenceWriter(javax.imageio.stream.ImageOutputStream outputStream, int timeBetweenFramesMS, boolean loopContinuously) throws java.io.IOExceptionCreates a new GifSequenceWriter- Parameters:
outputStream- the ImageOutputStream to be written totimeBetweenFramesMS- the time between frames in millisecondsloopContinuously- wether the gif should loop repeatedly- Throws:
javax.imageio.IIOException- if no gif ImageWriters are foundjava.io.IOException
-
-
Method Detail
-
writeToSequence
public void writeToSequence(java.awt.image.RenderedImage img) throws java.io.IOException- Throws:
java.io.IOException
-
close
public void close() throws java.io.IOExceptionClose this GifSequenceWriter object. This does not close the underlying stream, just finishes off the GIF.- Throws:
java.io.IOException
-
-
DMelt 3.0 © DataMelt by jWork.ORG