glDrawPixel problem

i want to rotate bitmap image which is rendered using glDrawPixel
is there any way ?

Why don’t you draw a textured quad? It’s pretty simpler.

To do this efficiently you must texture a quad, you cannot rotate a draw pixels call.