public class BitmapPool extends Object
Modifier and Type | Method and Description |
---|---|
void |
applyReusableOptions(BitmapFactory.Options aBitmapOptions) |
void |
asyncRecycle(Drawable pDrawable) |
void |
clearBitmapPool() |
static BitmapPool |
getInstance() |
Bitmap |
obtainBitmapFromPool() |
Bitmap |
obtainSizedBitmapFromPool(int aWidth,
int aHeight) |
void |
returnDrawableToPool(ReusableBitmapDrawable drawable) |
public static BitmapPool getInstance()
public void returnDrawableToPool(ReusableBitmapDrawable drawable)
public void applyReusableOptions(BitmapFactory.Options aBitmapOptions)
public Bitmap obtainBitmapFromPool()
public Bitmap obtainSizedBitmapFromPool(int aWidth, int aHeight)
public void clearBitmapPool()
public void asyncRecycle(Drawable pDrawable)