An image is rotated by copying color values from their original positions to the appropriate positions in a new image. For example, to rotate an image by 180 degrees, you swap the pixels at positions (0, 0) and (width – 1, height – 1), and so forth. Care must be taken in creating a new image, whose dimensions might differ from those of the original. Write a program that rotates an image by 90 degrees, counterclockwise.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here