A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: transparency in BitmapData

  1. #1
    Junior Member
    Join Date
    Jan 2007
    Posts
    14

    transparency in BitmapData

    Is it possible to create a bitmap out of a MovieClip but preserve transparency on the pixels where there is no content in MC?? Currently I succeed only to create a Bitmap with white space in place of transpatent areas.

  2. #2
    Junior Member
    Join Date
    Jan 2007
    Posts
    14
    ok, found a sollution in http://board.flashkit.com/board/showthread.php?t=704342
    Quote Originally Posted by cardin
    Turns out that in order to have transparent bitmaps, you need to set

    var bitmap:BitmapData = new BitmapData(280, 140, true, 0x000000);
    instead of
    var bitmap:BitmapData = new BitmapData(280, 140, true);

Posting Permissions

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




Click Here to Expand Forum to Full Width

HTML5 Development Center