public class

GIFImageParser

extends Object
java.lang.Object
   ↳ android.webkit.GIFImageParser

Summary

Public Constructors
GIFImageParser()
Public Methods
void ComposeBitmap(Bitmap bgbitmap, Bitmap fgbitmap, int[] maskbuf, int maskColor, Rect objrect, int width, int height)
void ComposeBitmaps(Bitmap bgbitmap, Bitmap fgbitmap, int[] maskbuf, int maskColor, Rect objrect, int width, int height)
void ComposeFrame(int[] bgbuf, int[] fgbuf, int[] overlaybuf, int[] maskbuf, int maskColor, Rect objrect, int width, int height)
void ComposeSingleLayerBitmap(Bitmap bgbitmap, Bitmap fgbitmap, int[] maskbuf, int maskColor, Rect objrect, int width, int height)
void ComposeSingleLayerBitmaps(Bitmap bgbitmap, Bitmap fgbitmap, int[] maskbuf, int maskColor, Rect objrect, int width, int height)
int GetValue()
void Release()
void SetData(String str)
void Setup(int value)
int[] frameBufferAtIndex(int index)
get the frame from GIF by index.
int frameCount()
long frameDurationAtIndex(int index)
Rect frameRectAtIndex(int index)
Bitmap nativeAllocFrameBitmap()
void nativeBegin()
int nativeGetFrameBitmap(int index, Bitmap DstBitmap)
int[] nativeGetFrameBuffer(int index)
int nativeGetFrameBuffer2(int index, int[] dstBuf, int ndstBufLen)
void nativeRelease()
int repetitionCount()
void setRawData(byte[] byteArray)
Rect size()
Protected Methods
void finalize()
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public GIFImageParser ()

Public Methods

public void ComposeBitmap (Bitmap bgbitmap, Bitmap fgbitmap, int[] maskbuf, int maskColor, Rect objrect, int width, int height)

public void ComposeBitmaps (Bitmap bgbitmap, Bitmap fgbitmap, int[] maskbuf, int maskColor, Rect objrect, int width, int height)

public void ComposeFrame (int[] bgbuf, int[] fgbuf, int[] overlaybuf, int[] maskbuf, int maskColor, Rect objrect, int width, int height)

public void ComposeSingleLayerBitmap (Bitmap bgbitmap, Bitmap fgbitmap, int[] maskbuf, int maskColor, Rect objrect, int width, int height)

public void ComposeSingleLayerBitmaps (Bitmap bgbitmap, Bitmap fgbitmap, int[] maskbuf, int maskColor, Rect objrect, int width, int height)

public int GetValue ()

public void Release ()

public void SetData (String str)

public void Setup (int value)

public int[] frameBufferAtIndex (int index)

get the frame from GIF by index. return color buffer,ARGB8888 array However, GIFImageDecoder always return the first frame. It seem to be a bug

Parameters
index the index to get

public int frameCount ()

public long frameDurationAtIndex (int index)

public Rect frameRectAtIndex (int index)

public Bitmap nativeAllocFrameBitmap ()

public void nativeBegin ()

public int nativeGetFrameBitmap (int index, Bitmap DstBitmap)

public int[] nativeGetFrameBuffer (int index)

public int nativeGetFrameBuffer2 (int index, int[] dstBuf, int ndstBufLen)

public void nativeRelease ()

public int repetitionCount ()

public void setRawData (byte[] byteArray)

public Rect size ()

Protected Methods

protected void finalize ()

Since: API Level