daily pastebin goal
41%
SHARE
TWEET

Untitled

a guest Aug 11th, 2018 53 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Modifying Bitmap from resources
  2. Drawable homeImage = mHomeImage.getBackground(); // my ImageView
  3. homeImage.mutate();
  4. Canvas c = new Canvas(((BitmapDrawable)homeImage).getBitmap());
  5.    
  6. Bitmap bmp1 = (((BitmapDrawable)homeImage).getBitmap())
  7.         .copy(Config.ARGB_8888, true);
  8. Canvas c = new Canvas(bmp1);
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top