Flipping

Flipping: Flipping is a really easy effect. All you have to do is make the first pixel of the original image the last pixel of the new image. You just reverse the order of the pixels. This can be done real easily in a for loop. You just iterate through all the pixels of the original image (from 0 to one less than width x height) and assign that pixel starting at the end of the other array ( that would be one less than width x height minus the current value of the counter).