126 2/6/2017 9:55:38 AM


:

Reverse image

Picture source = new Picture(args[0]);

int width = source.width();

int height = source.height();

Picture target = new Picture(width, height);

for (int i = 0; i < width; i++)

for (int j = 0; j < height; j++)

target.set(i, height-j-1, source.get(i, j));

target.show();