Posted By

linkage on 08/20/09


Tagged

transparent as3 getColorBoundsRect


Versions (?)

getColorBoundsRect in transparent Bitmap


 / Published in: ActionScript 3
 

if you have a bitmapData Object with transparent content and some colored pixels, you can get the bounds for those pixels with this method

  1. var bounds : Rectangle = myBmpData.getColorBoundsRect(0xFFFFFFFF, 0x000000, false);

Report this snippet  

You need to login to post a comment.