Gif Decoder
class GifDecoder
GIF Decoder quelloffen übernommen. 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
}
Content copied to clipboard
Author
Kevin Weiner, FM Software; LZW decoder adapted from John Cristy's ImageMagick.
Properties
Functions
Link copied to clipboard
Gets the image contents of frame n.
Link copied to clipboard
Gets the number of frames read from file.
Link copied to clipboard
Gets image size.
Link copied to clipboard
Gets the first (or only) image read.
Link copied to clipboard
Gets the "Netscape" iteration count, if any.
Link copied to clipboard
Reads GIF image from stream
Reads GIF file from specified file/URL source (URL assumed if name contains ":/" or "file:")