# setPixel transparent

**URL:** <https://forum.kirupa.com/t/setpixel-transparent/287522>\
**Category:** flash\
**Created:** [May 2, 2009, 10:04pm UTC](https://forum.kirupa.com/t/setpixel-transparent/287522 "2009-05-02T22:04:33Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![gregmax](https://avatars.discourse-cdn.com/v4/letter/g/ac8455/32.png) [@gregmax](https://forum.kirupa.com/u/gregmax)\
**Post date:** [May 2, 2009, 10:04pm UTC](https://forum.kirupa.com/t/setpixel-transparent/287522/1 "2009-05-02T22:04:33Z")

</div>

I am trying to use the bitmapData.setPixels method to set certain pixels in the bitmap transparent. But no matter what I do, it always seems to set the pixel(s) black (non-transparent).

Here is my code:

[AS]  
bmpd = new ImageFromLibrary(0, 0);  
bmpd.setPixel(0, 0, 0x00000000);  
[/AS]

Anyone have any idea on why its not setting the pixel(s) transparent?

Thanks in advance
