Advertisement
Guest User

Untitled

a guest
Mar 23rd, 2017
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1.  
  2. int[][] tabimage() {
  3. int width = getWidth();
  4. int height = getHeight();
  5. int image[][] = new int[width][height];
  6. for(int y = 0; y < height; y++) {
  7. for(int x = 0; x < width; x++) {
  8. image[x][y] = getPixel(x, y);
  9. print(image[x][y] + " ");
  10. }
  11. }
  12. return image;
  13. }
  14.  
  15.  
  16. void main() {
  17. reset(100,100, false);
  18. load("image.png");
  19. tabimage();
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement