public class BitmapPool
extends java.lang.Object
构造器和说明 |
---|
BitmapPool() |
限定符和类型 | 方法和说明 |
---|---|
void |
applyReusableOptions(BitmapFactory.Options aBitmapOptions)
设置重复使用的参数options
|
void |
clearBitmapPool()
清空Bitmap池
|
static BitmapPool |
getInstance()
单列模式获得BitmapPool对象
|
Bitmap |
obtainBitmapFromPool()
从Bitmap集合中取出对象
|
Bitmap |
obtainSizedBitmapFromPool(int aWidth,
int aHeight)
根据宽高从bitmap集合中去除bitmap对象
|
void |
returnDrawableToPool(ReusableBitmapDrawable drawable)
加入到Bitmap list集合中
|
public static BitmapPool getInstance()
public void returnDrawableToPool(ReusableBitmapDrawable drawable)
drawable
- ReusableBitmapDrawable对象public void applyReusableOptions(BitmapFactory.Options aBitmapOptions)
aBitmapOptions
- 参数optionspublic Bitmap obtainBitmapFromPool()
public Bitmap obtainSizedBitmapFromPool(int aWidth, int aHeight)
aWidth
- 宽度aHeight
- 高度public void clearBitmapPool()