Advertisement
Guest User

Untitled

a guest
Jun 20th, 2019
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. ByteArray ba; // Some value is assigned here
  2. Bitmap bitmap = BitmapFactory.decodeByteArray(ba, 0, ba.length);
  3.  
  4. ByteArray ba; // Some value is assigned here
  5. BitmapFactory.Options options = new BitmapFactory.Options();
  6. options.inSampleSize = 4; //or whatever value
  7. Bitmap bitmap = BitmapFactory.decodeByteArray(ba, 0, ba.length, options);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement