Advertisement
Guest User

Untitled

a guest
May 3rd, 2016
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. public RGBColor[][] toRGBColorArray(){
  2.  
  3. RGBColor[][] newImage = new RGBColor[rows][cols];
  4.  
  5. for(int i=0;i<rows;i++)
  6. for(int j=0;j<cols;j++)
  7. newImage[i][j]=new RGBColor(image[i][j]);
  8.  
  9. return newImage;
  10. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement