How do I go about rotating an image to a specific angle?

I want to implement this into a game, so it has to be quick, although I don't want to (or prefer not to) use Direct X/Direct Draw...

Can someone please explain how to do it, and provide easy to understand/implement code? Thanks. =)