Rotate pixel array 90 degrees in C++
I've written the next function to rotate an unsigned char pixel array which holds a RGB image by 90 degrees. The problem I'm facing is that the rotated output is all completely garbled. void rotat...