Rotation of a not vector image (png) with a high quality

can somebody please provide source code that just rotates png image?
in real time (so it has to be fast)
also i need the quality of the image highest
(not clear and separate pixels of many 2d Flash games)
i hope u understand what i mean by high quality
most Flash games for speed performance reasons can change the quality of image by changing amount of points to calculate a color of a single screen pixel
i use FlashDevelop so it wont satisfy me to complete what i’m asking for with Macromedia tools

i would be very glad if i’ll finally get how to do this