Display object to BitmapData


/ Published in: ActionScript 3
Save to your folder(s)



Copy this code and paste it in your HTML
  1. import flash.display.BitmapData;
  2. var bitmapData:BitmapData = new BitmapData(button.width, button.height, false, 0xFFFFFF);
  3. bitmapData.draw(button);
  4. // result: bitmapData

URL: http://blog.yoz.sk/2009/10/bitmap-bitmapdata-bytearray/

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.