Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- BitmapFactory.decodeFile(list.get(i));
- options.inJustDecodeBounds = false;
- if (myBitmap != null) {
- myBitmap.recycle();
- myBitmap = null;
- }
- Bitmap decodedSampleBitmap = BitmapFactory.decodeFile(list
- .get(i));
- myBitmap = Bitmap.createScaledBitmap(decodedSampleBitmap,
- width, height, true);
- if (decodedSampleBitmap != myBitmap)
- decodedSampleBitmap.recycle();
- decodedSampleBitmap = null;
Advertisement
Add Comment
Please, Sign In to add comment