|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectrailo.runtime.img.gif.GifDecoder
public class GifDecoder
Field Summary | |
---|---|
static int |
STATUS_FORMAT_ERROR
File read status: Error decoding file (may be partially decoded) |
static int |
STATUS_OK
File read status: No errors. |
static int |
STATUS_OPEN_ERROR
File read status: Unable to open source. |
Constructor Summary | |
---|---|
GifDecoder()
|
Method Summary | |
---|---|
int |
getDelay(int n)
Gets display duration for specified frame. |
BufferedImage |
getFrame(int n)
Gets the image contents of frame n. |
int |
getFrameCount()
Gets the number of frames read from file. |
Dimension |
getFrameSize()
Gets image size. |
BufferedImage |
getImage()
Gets the first (or only) image read. |
int |
getLoopCount()
Gets the "Netscape" iteration count, if any. |
int |
read(BufferedInputStream is)
Reads GIF image from stream |
int |
read(InputStream is)
Reads GIF image from stream |
int |
read(String name)
Reads GIF file from specified file/URL source (URL assumed if name contains ":/" or "file:") |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int STATUS_OK
public static final int STATUS_FORMAT_ERROR
public static final int STATUS_OPEN_ERROR
Constructor Detail |
---|
public GifDecoder()
Method Detail |
---|
public int getDelay(int n)
n
- int index of frame
public int getFrameCount()
public BufferedImage getImage()
public int getLoopCount()
public BufferedImage getFrame(int n)
public Dimension getFrameSize()
public int read(BufferedInputStream is)
BufferedInputStream
- containing GIF file.
public int read(InputStream is)
InputStream
- containing GIF file.
public int read(String name)
name
- String containing source
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |