# Knowing if a bitmapData contains transparent pixels

**URL:** <https://forum.kirupa.com/t/knowing-if-a-bitmapdata-contains-transparent-pixels/309375>\
**Category:** flash\
**Created:** [May 13, 2010, 9:45am UTC](https://forum.kirupa.com/t/knowing-if-a-bitmapdata-contains-transparent-pixels/309375 "2010-05-13T09:45:19Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ayman](https://avatars.discourse-cdn.com/v4/letter/a/dec6dc/32.png) [@Ayman](https://forum.kirupa.com/u/Ayman)\
**Post date:** [May 13, 2010, 9:45am UTC](https://forum.kirupa.com/t/knowing-if-a-bitmapdata-contains-transparent-pixels/309375/1 "2010-05-13T09:45:19Z")

</div>

I have a list of images, and without scanning through each pixel in each image, I want to find out if the image contains transparency (at least one non-opaque pixel).

Is there a shortcut to do this (like a property of bitmapData object) rather than looping through the pixels?

Thanks
