0 Replies Latest reply on Apr 25, 2007 6:14 AM by zeke225

    Saving BitmapData

    zeke225
      I am saving a screen shot of my application using the following code...

      var bd : BitmapData = new BitmapData( target.width, target.height );
      bd.draw( target, new Matrix());

      to get the contents of the target (a UIComponent) into the BitmapData object, which I then convert to a PNG, etc, etc. My question revolves around the fact that when I do this, the resulting image only shows the "viewable" portion of the target component. As an example, I have a Canvas that is nested in another Canvas in such a way that there are scrollbars. When I do the saving, rather than getting the entire size of the inner Canvas, I only get the viewable size of the outer Canvas.

      My question is, how do I (or can I) get the entire content of the inner Canvas and not just what is viewable/

      Thanks