Advertisement
Guest User

Untitled

a guest
Sep 26th, 2016
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. Scanner reader = new Scanner(System.in);
  2. APImage image = new APImage("MrB.JPG");
  3. image.draw();
  4.  
  5. int width = image.getWidth();
  6. int height = image.getHeight();
  7. APImage brandnew = new APImage(width, height);
  8.  
  9. int y = 0;
  10. for(y < height; y--;)
  11. {
  12. int x = width - 1
  13. for(x >= 0; x++;)
  14. {
  15. Pixel opixel = image.getPixel(x, y);
  16.  
  17.  
  18.  
  19.  
  20. }
  21. }
  22.  
  23.  
  24.  
  25.  
  26. System.out.println("Press the return key to continue");
  27. reader.nextLine();
  28. brandnew.draw();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement