# Loading Bitmap with transparency = true

**URL:** <https://forum.kirupa.com/t/loading-bitmap-with-transparency-true/267729>\
**Category:** Uncategorized\
**Created:** [August 5, 2008, 7:00am UTC](https://forum.kirupa.com/t/loading-bitmap-with-transparency-true/267729 "2008-08-05T07:00:32Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![OML](https://avatars.discourse-cdn.com/v4/letter/o/5e9695/32.png) [@OML](https://forum.kirupa.com/u/OML)\
**Post date:** [August 5, 2008, 7:00am UTC](https://forum.kirupa.com/t/loading-bitmap-with-transparency-true/267729/1 "2008-08-05T07:00:32Z")

</div>

Hello all,  
I’m trying to load a Bitmap from and external URL, and manipulate a few pixels color and alpha values. I’ve managed to get the BitmapData and change some pixel colors, but there’s a problem with the transparency.  
The ‘transparent’ property in BitmapData is only getable (non-setable), and after loading the Bitmap it’s automatically given transparent=false.

I’ve tried solving this in a few methods, without much success:

1. My first attempt was to set the property of the BitmapData:  
[COLOR=Blue]bitmapData.transparent = true;[COLOR=Black]

2. Created a new BitmapData with transparency enabled, and setting the loaded bitmap’s BitmapData onto the new one, hoping that the transparent field will remain ‘true’.  
[COLOR=Blue]

[COLOR=Black]Can somebody help me load a JPG file from a URL, and change some alpha values of certain pixels in the BitmapData?

[/COLOR][/COLOR][/COLOR][/COLOR]
