Skip to content

Latest commit

 

History

History
22 lines (19 loc) · 1007 Bytes

README.md

File metadata and controls

22 lines (19 loc) · 1007 Bytes

##AS3 Bitmap Snapshot

####A simple utility class to draw any DisplayObject to an .png or .jpg Also includes a sample php script that you can use to upload and save it to a server.


Example Usage

private function saveToDesktop():void
{    
var img.BitmapSnapshot = new BitmapSnapshot(displayObject, filename);
    img.saveToDesktop();
}
 
private function saveOnServer():void
{
var img:BitmapSnapshot = new BitmapSnapshot(displayObject, filename);
    img.saveOnServer(phpscript, destinationOnServer);
}

Live Demo & More Information Here.

This repository contains the full source for the demo on my website, the actual BitmapSnaphot class is located here.