public class UnusedBitmapPool
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
Bitmap |
createBitmap(ImageSize size) |
Bitmap |
createBitmap(int width,
int height,
Bitmap.Config config) |
static UnusedBitmapPool |
get() |
Bitmap |
getBitmap(ImageSize size) |
Bitmap |
getBitmap(int width,
int height,
Bitmap.Config config) |
UnusedBitmapPool |
recycle(Bitmap bitmap) |
@NonNull @AnyThread public Bitmap createBitmap(@NonNull ImageSize size)
@NonNull @AnyThread public Bitmap createBitmap(int width, int height, Bitmap.Config config)
@AnyThread public static UnusedBitmapPool get()
@Nullable @AnyThread public Bitmap getBitmap(ImageSize size)
@Nullable @AnyThread public Bitmap getBitmap(int width, int height, Bitmap.Config config)
@AnyThread public UnusedBitmapPool recycle(Bitmap bitmap)