Advertisement
daniv1

Юзай цю штуку в 4 лабі

Apr 23rd, 2018
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.64 KB | None | 0 0
  1.   byte [][] tempr = new byte[width][height];
  2.         byte [][] tempg = new byte[width][height];
  3.         byte [][] tempb = new byte[width][height];
  4.                          tempr[j][i] = red[j][i];
  5.                          tempb[j][i] = blue[j][i];
  6.                          tempg[j][i] = green[j][i];
  7.                           red[j][i] = (byte)(red[j][height-i]) ;
  8.                           green[j][i] = blue[j][height-i] ;
  9.                           blue[j][i] = green[j][height-i] ;
  10.                           blue[j][height-i] = tempb[j][i];
  11.                           green[j][height-i] = tempg[j][i];
  12.                           red[j][height-i] = tempr[j][i];
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement