public final class GifDecoder.GifImage
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
java.lang.String |
appAuthCode |
java.lang.String |
appId |
int |
bgColIndex |
int |
colorResolution |
int[] |
globalColTbl |
boolean |
hasGlobColTbl |
java.lang.String |
header |
int |
pxAspectRatio |
int |
repetitions |
int |
sizeOfGlobColTbl |
boolean |
sortFlag |
Constructor and Description |
---|
GifImage() |
Modifier and Type | Method and Description |
---|---|
int |
getBackgroundColor()
Returns the background color of the first frame in this GIF image.
|
int |
getDelay(int index)
If not 0, the delay specifies how many hundredths (1/100) of a second
to wait before displaying the frame after the current frame.
|
java.awt.image.BufferedImage |
getFrame(int index) |
int |
getFrameCount() |
int |
getHeight() |
int |
getWidth() |
public java.lang.String header
public boolean hasGlobColTbl
public int colorResolution
public boolean sortFlag
public int sizeOfGlobColTbl
public int bgColIndex
public int pxAspectRatio
public int[] globalColTbl
public java.lang.String appId
public java.lang.String appAuthCode
public int repetitions
public final int getBackgroundColor()
index
- Index of the current frame, 0 to N-1public final int getDelay(int index)
index
- Index of the current frame, 0 to N-1public final java.awt.image.BufferedImage getFrame(int index)
index
- Index of the frame to return as image, starting from 0.
For incremental calls such as [0, 1, 2, ...] the method's
run time is O(1) as only one frame is drawn per call. For
random access calls such as [7, 12, ...] the run time is
O(N+1) with N being the number of previous frames that
need to be drawn before N+1 can be drawn on top. Once a
frame has been drawn it is being cached and the run time
is more or less O(0) to retrieve it from the list.public final int getFrameCount()
public final int getHeight()
public final int getWidth()