1 Reply Latest reply on Apr 24, 2007 7:42 AM by Newsgroup_User

    Bitmap vs BitmapData

    Rothrock Level 5
      I'm excited to be learning AS3 with my new copy of Flash. But it seems to me the documentation has taken a step back since MX04.

      So can anybody explain the difference between Bitmap and BitmapData class? I'm guessing that BitmapData is just used to manipulate the data and then the Bitmap is used for display?
        • 1. Re: Bitmap vs BitmapData
          Level 7
          You're correct. BitmapData is the information that describes the pixel data
          of a raster image. A Bitmap is the DisplayObject used on the screen to
          present and display that data - essentially the MovieClip of the bitmap
          information. Each Bitmap has a bitmapData property which provides access to
          the BitmpData instance which makes up its image, however BitmapData
          instances don't necessarily need to be associated with any particular Bitmap
          as they can be used in other ways such as with filters.

          "Rothrock" <webforumsuser@macromedia.com> wrote in message
          news:f0l45u$e11$1@forums.macromedia.com...
          > I'm excited to be learning AS3 with my new copy of Flash. But it seems to
          > me
          > the documentation has taken a step back since MX04.
          >
          > So can anybody explain the difference between Bitmap and BitmapData class?
          > I'm
          > guessing that BitmapData is just used to manipulate the data and then the
          > Bitmap is used for display?
          >