Method Summary |
|
protected void | decodeImageData() Decodes LZW image data into pixel array. |
protected boolean | err() |
public int | getDelay(int n) Gets display duration for specified frame. |
public BufferedImage | getFrame(int n) Gets the image contents of frame n. |
public int | getFrameCount() Gets the number of frames read from file. |
public Dimension | getFrameSize() Gets image size. |
public BufferedImage | getImage() Gets the first (or only) image read. |
public int | getLoopCount() Gets the "Netscape" iteration count, if any. |
protected void | init() |
public int | read(BufferedInputStream is) Reads GIF image from stream
Parameters: is - BufferedInputStreamcontaining GIF file. |
public int | read(InputStream is) Reads GIF image from stream
Parameters: is - InputStream containing GIF file. |
public int | read(String name) |
protected int | read() Reads a single byte from the input stream. |
protected int | readBlock() Reads next variable length block from input. |
protected int[] | readColorTable(int ncolors) |
protected void | readContents() Main file parser. |
protected void | readGraphicControlExt() |
protected void | readHeader() Reads GIF file header information. |
protected void | readImage() |
protected void | readLSD() |
protected void | readNetscapeExt() |
protected int | readShort() |
protected void | resetFrame() Resets frame state for reading next image. |
protected void | setPixels() Creates new frame image from current data (and previous frames as
specified by their disposition codes). |
protected void | skip() Skips variable length blocks up to and including next zero length
block. |