getColorBoundsRect in transparent Bitmap


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

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


Copy this code and paste it in your HTML
  1. var bounds : Rectangle = myBmpData.getColorBoundsRect(0xFFFFFFFF, 0x000000, false);

Report this snippet


Comments


You need to login to view comments.