public class GifDecoder
extends java.lang.Object
| 限定符和类型 | 字段和说明 |
|---|---|
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.
|
| 构造器和说明 |
|---|
GifDecoder() |
| 限定符和类型 | 方法和说明 |
|---|---|
int |
getDelay(int n)
Gets display duration for specified frame.
|
java.awt.image.BufferedImage |
getFrame(int n)
Gets the image contents of frame n.
|
int |
getFrameCount()
Gets the number of frames read from file.
|
java.awt.Dimension |
getFrameSize()
Gets image size.
|
java.awt.image.BufferedImage |
getImage()
Gets the first (or only) image read.
|
int |
getLoopCount()
Gets the "Netscape" iteration count, if any.
|
int |
read(java.io.BufferedInputStream is)
Reads GIF image from stream
|
int |
read(java.io.InputStream ois)
Reads GIF image from stream
|
int |
read(java.lang.String name)
Reads GIF file from specified file/URL source (URL assumed if name contains ":/" or "file:")
|
public static final int STATUS_OK
public static final int STATUS_FORMAT_ERROR
public static final int STATUS_OPEN_ERROR
public int getDelay(int n)
n - int index of framepublic int getFrameCount()
public java.awt.image.BufferedImage getImage()
public int getLoopCount()
public java.awt.image.BufferedImage getFrame(int n)
n - -public java.awt.Dimension getFrameSize()
public int read(java.io.BufferedInputStream is)
is - containing GIF file.public int read(java.io.InputStream ois)
ois - containing GIF file.public int read(java.lang.String name)
name - String containing source