Skip to main content
Participant
April 13, 2012
Question

Screenshot to photo library?

  • April 13, 2012
  • 2 replies
  • 667 views

Anyone have an idea of AS3 code to take a screenshot of an app on the iPad and push the image to the photo library? Or an email? Thanks!

This topic has been closed for replies.

2 replies

Inspiring
April 13, 2012

This will do the trick

if (CameraRoll.supportsAddBitmapData)   

{

        var cameraroll:CameraRoll = new CameraRoll(); 

       

        cameraroll.addEventListener(ErrorEvent.ERROR, handle_error); 

        cameraroll.addEventListener(Event.COMPLETE, handle_complete); 

       

        var bitmap_data:BitmapData = new BitmapData(stage.stageWidth, stage.stageHeight); 

       

       bitmap_data.draw(stage);

       

       cameraroll.addBitmapData(bitmap_data); 

}

else { trace("CameraRoll isn't supported."; }

Participant
April 13, 2012

Thanks Applauz I will give it a shot!