public final class GifDecoder.GifImage extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
String |
appAuthCode |
String |
appId |
int |
bgColIndex |
int |
colorResolution |
int[] |
globalColTbl |
boolean |
hasGlobColTbl |
String |
header |
int |
pxAspectRatio |
int |
repetitions |
int |
sizeOfGlobColTbl |
boolean |
sortFlag |
| 构造器和说明 |
|---|
GifImage() |
| 限定符和类型 | 方法和说明 |
|---|---|
int |
getBackgroundColor(int index)
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.
|
BufferedImage |
getFrame(int index) |
int |
getFrameCount() |
int |
getHeight() |
int |
getWidth() |
public String header
public boolean hasGlobColTbl
public int colorResolution
public boolean sortFlag
public int sizeOfGlobColTbl
public int bgColIndex
public int pxAspectRatio
public int[] globalColTbl
public String appId
public String appAuthCode
public int repetitions
public final int getBackgroundColor(int index)
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 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()
Copyright © 2018. All rights reserved.