JPEG to AS3 bitmap drawing

I wrote a little php script that takes a jpg or png off the web generates code for AS3’s drawing api to fully reproduce the picture as a class .as file. I’m not sure of it’s usefulness because it might be quicker to download the picture and then display it, then it is to draw it from ‘scratch’. I also am not sure about the resulting .swf file size after importing the class, as opposed to loading the picture after compilation. I do know however, if you’re using the drawing api (setPixel) extensively but would rather spend your time using photoshop this becomes very useful. It’s great for making scroll bars and little buttons in AS3 that need to be constantly redrawn. Tell me what you think. I’ll improve it if it’s useful…

http://www.efnx.com/utils/jpegtoas3.php