I am doing some work that requires image manipulation. Up to this point, I have simply been reading image data from raw image data in RGBA format, and storing image data as an array of integers, a width, and a height.

However, now I am adding some functionality in which I would like to be able to rotate images. However, as I am not into re-inventing the wheel and as I am pretty sure that other people have done this far better than I could, I have been looking for an image manipulation library in C.

I have not yet been able to find one. Is there a library in C that allows loading of images and then rotation of those images?

Thank you.