i want to rotate an BMP image/ image Buffer with 1 degree precision in z-axis(Width & Height wont get changed) only by using OpenGL and i want to Export the Rotated image & save it as a BMP file.

I tried to render that image by using OpenGL functions by applying this image as a texture to a QUAD & i'm able to rotate & render this image in desired direction. But now i want to export this rotated image.

Could anyone please tell me is it possible by using standard functions in OpenGL?

Or else please suggest any links regarding this.

Thank you