LCDBitmap

The previous Saburin’s post is very impressive for me. But his code is a little difficult to use in my projects. :(

So, I created a class LCDBitmap based on his code to use a great effect more handily. :D You can use it like:

addChild(new LCDBitmap(bitmapData));

A bitmapData is an instance of BitmapData you want to display. You can get same result by this simple code. In addition, you can customize a size or a margin of tiles displaying the RGB by passing 2nd or 3rd parameter.

addChild(new LCDBitmap(bitmapData, 4, 2));

In this case, the size is 4px and the margin is 2px.

Source was committed to the Spark project. And a Quick Demo was posted to the Wonderfl. Please check it out!

Follow me on Twitter