SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Wizard Wolf_22's Avatar
    Join Date
    Jul 2005
    Posts
    1,700
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question Question about BMP and ActionScript...

    I've read in a few places about how ActionScript allows for "caching of objects as internal bitmap representations of instances" using the cacheAsBitmap property. Also, the BitmapData class allows for creating and manipulating arbitrarily sized transparent or opaque bitmap images...

    First of all, what does the "caching of objects as internal bitmap representations" mean exactly?

    Secondly, when it's said that the BitmapData class can create transparent bitmap images, are "they" referring to actual bitmap imagery which supports transparency or is this instead being used to describe some sort of generic way of thinking about creating an image using a class within ActionScript? I guess I'm just shocked that BMP files supposedly support transparency when usually I see an immense advocacy for PNG usage in this sort of image attribute need.

  2. #2
    Community Advisor silver trophy

    Join Date
    Nov 2006
    Location
    UK
    Posts
    2,514
    Mentioned
    37 Post(s)
    Tagged
    1 Thread(s)
    Quote Originally Posted by Wolf_22 View Post
    First of all, what does the "caching of objects as internal bitmap representations" mean exactly?
    Stored as individual pixels, with RGB values (and possibly an alpha channel value too) as opposed to a vector with line and curve data.

    Quote Originally Posted by Wolf_22 View Post
    Secondly, when it's said that the BitmapData class can create transparent bitmap images, are "they" referring to actual bitmap imagery which supports transparency
    Yes


    Quote Originally Posted by Wolf_22 View Post
    I guess I'm just shocked that BMP files supposedly support transparency when usually I see an immense advocacy for PNG usage in this sort of image attribute need.
    BMP is a file format, it's not the same thing as a bitmapData in actionscript


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •