BitmapData.draw()
Sunday, December 17th, 2006Everyone knows that shifting pixels is less processor-intensive than calculating vectors; a far cry from the days where Flash’s vector-rendering engine made small-sized animations a possibility. However, with more and more complex animations, and copious use of external assets, BitmapData.draw() becomes more tempting.
The BitmapData Class allows developers to plug in directly into the Bitmap interface, and interact with Bitmap data on a pixel level. It is entirely possible to build an online Graphics Editor, or interact with other “Drawable Objects”. Drawable Objects are basically any class that can be coerced into the IBitmapDrawable interface. DisplayObjects, TextFields etc. (more…)