Home | History | Annotate | Download | only in data

Lines Matching refs:Bitmap

18 import android.graphics.Bitmap;
19 import android.graphics.Bitmap.Config;
36 * to decode a bitmap from GalleryBitmapPool. The bitmap may be returned
37 * directly to GalleryBitmapPool or use the put method here when the bitmap is
49 public static Bitmap decode(InputStream in) {
61 Bitmap reuseBitmap = pool.get(opts.outWidth, opts.outHeight);
63 Bitmap decodedBitmap = BitmapFactory.decodeStream(in, null, opts);
69 Log.e(TAG, "Could not decode stream to bitmap", e);
77 public static Bitmap decode(File in) {
81 public static Bitmap decodeFile(String in) {
88 Bitmap reuseBitmap = pool.get(opts.outWidth, opts.outHeight);
90 Bitmap decodedBitmap = BitmapFactory.decodeFile(in, opts);
100 public static void put(Bitmap bitmap) {
101 GalleryBitmapPool.getInstance().put(bitmap);