Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int[][] tabimage() {
- int width = getWidth();
- int height = getHeight();
- int image[][] = new int[width][height];
- for(int y = 0; y < height; y++) {
- for(int x = 0; x < width; x++) {
- image[x][y] = getPixel(x, y);
- print(image[x][y] + " ");
- }
- }
- return image;
- }
- void main() {
- reset(100,100, false);
- load("image.png");
- tabimage();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement