-
Images
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.
-
-
I did this a while back with just basic bitmaps as you described. It can be a little daunting but can be done. It makes it easier if you have loaded them in some sort of 2D array. From there it is just figuring the algorithm to do a simple rotation. iirc, it took me only a few lines of code.
-
I was hoping for something more elegant / optimized, perhaps something that did some aliasing too. Does anyone know of a library that already does this, or am I going to have to make some myself?
-