title: How can I quickly rotate the pixels that make up BitmapData without using BitmapData.draw()?
body: <p>I've been using <a href="http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/display/BitmapData.html#copyPixels%28%29" rel="nofollow"><code>BitmapData.copyPixels()</code></a> to draw graphics onto a canvas (<code>Bitmap</code>).</p>
  
  <p>I need to rotate the resulting graphics without the use of <a href="http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/display/BitmapData.html#draw%28%29" rel="nofollow"><code>draw()</code></a> because it's vastly slower.</p>
  
  <p>How can I rotate the target graphic? I'm assuming that there might be a formula or library that I can use which will first reorganize the pixels that make up a graphic based on an origin (point) and radians.</p>
  
  <p>I'm pretty certain that I'm not capable of creating such logic, so if there are any known libraries that do this, that would be awesome.</p>
  
  <p>I'd like to achieve something similar to XNA's <a href="http://msdn.microsoft.com/en-us/library/ff433992.aspx" rel="nofollow"><code>SpriteBatch.Draw()</code></a> method, which accepts <code>rotation</code> as its 5th argument.</p>