|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public static interface GifDecoder.BitmapProvider
An interface that can be used to provide reused Bitmaps to avoid GCs from constantly
allocating Bitmaps for every frame.
| Method Summary | |
|---|---|
android.graphics.Bitmap |
obtain(int width,
int height,
android.graphics.Bitmap.Config config)
Returns an Bitmap with exactly the given dimensions and config, or null if no such Bitmap
could be obtained. |
void |
release(android.graphics.Bitmap bitmap)
Releases the given Bitmap back to the pool. |
| Method Detail |
|---|
android.graphics.Bitmap obtain(int width,
int height,
android.graphics.Bitmap.Config config)
Bitmap with exactly the given dimensions and config, or null if no such Bitmap
could be obtained.
width - The width in pixels of the desired Bitmap.height - The height in pixels of the desired Bitmap.config - The Bitmap.Config of the desired Bitmap.void release(android.graphics.Bitmap bitmap)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||