Class GifDecoder

java.lang.Object
org.miaixz.bus.extra.image.gif.GifDecoder

public class GifDecoder extends Object
Class GifDecoder - Decodes a GIF file into one or more frames.

Example:

 
 GifDecoder d = new GifDecoder();
 d.read("sample.gif");
 int n = d.getFrameCount();
 for (int i = 0; i < n; i++) {
     BufferedImage frame = d.getFrame(i); // frame i
     int t = d.getDelay(i); // display duration of frame in milliseconds
     // do something with frame
 }
 
 
No copyright asserted on the source code of this class. May be used for any purpose, however, refer to the Unisys LZW patent for any additional restrictions. Please forward any corrections to questions at fmsware.com.