Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.

  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 36. Programming Bitmap Graphics > Capturing and Copying Bitmaps

36.3. Capturing and Copying Bitmaps

As much fun as creating cerulean rectangles is, bitmaps are put to better use by modifying existing imagery. You can capture bitmap data from any display object or by copying another bitmap in whole or part.

36.3.1. Copying from Display Objects

The draw() method is hands-down the most important method of BitmapData. It captures any DisplayObject (or portion thereof) as a bitmap. Keeping in mind that DisplayObjects can have any number of children and that the stage is also a DisplayObject, the draw() method can capture individual display objects, groups or layers, or portions of the whole screen.


  

You are currently reading a PREVIEW of this book.

                                                                                                                    

Get instant access to over $1 million worth of books and videos.

  

Start a Free Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint