Guest User

Untitled

a guest
Jul 22nd, 2018
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. int k = 0;
  2. int kRoll = 0;
  3. int width = img.getWidth();
  4. int height = img.getHeight();
  5. for (int i = 0; i < SIZE; i++) {
  6. for (int j = 0; j < SIZE; j++) {
  7. imgArray[k] = Bitmap.createBitmap(img, (width * j) / SIZE,
  8. (i * height) / SIZE, width / SIZE, height / SIZE);
  9. if (k == 0) {
  10. k = kRoll;
  11. }
  12.  
  13. imgMap.put(k, imgArray[k]);
  14. k++;
  15. kRoll = k;
  16. }
  17.  
  18. }
Add Comment
Please, Sign In to add comment