How to Rotate an Image

Hi,
I am developing a GUI for an audio system. I have a Gif image with me. This image is to be used as the volume control (round slider) in the audio system GUI. On increasing/decreasing the volume the image has to rotated. I dont know how to rotate the image. Please help me in finding a solution...
Last edited on
I think it'd be a better idea to flip it, rather than rotate it.
w being the width, you just need to swap these elements:
image[x][y] with image[w-x-1][y]
Topic archived. No new replies allowed.