Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- imageView.setDrawingCacheEnabled(true;
- Bitmap.createBitmap(imageView.getDrawingCache(), 0, 0,
- imageView.getHeight(), imageView.getWidth(),
- matrix, true).compress(CompressFormat.JPEG, 95,
- new FileOutputStream(file));
- Bitmap bmp = ((BitmapDrawable)imageView.getDrawable()).getBitmap();
- Bitmap.createBitmap(bmp, 0, 0,
- bmp.getWidth(), bmp.getHeight(),
- matrix, true).compress(CompressFormat.JPEG, 95,
- new FileOutputStream(file));
- Bitmap.createScaledBitmap(Bitmap b, int newWidth, int newHieght, boolean filter);
- Bitmap image = BitmapFactory.decodeResource(..)
- ImageView.setImageBitmap(Bitmap bm)
Add Comment
Please, Sign In to add comment