Forum Topic: flash 8: BitmapData question

(51 views • 2 replies)

This topic is 1 page long.

<< < > >>
None

Disarray-yarrasiD

Reply To Post Reply & Quote

Posted at: 6/30/08 09:19 PM

Disarray-yarrasiD DARK LEVEL 09

Sign-Up: 11/14/04

Posts: 1,474

I know that flash 8 isn't widely in use anymore, but since I don't have the money to upgrade at this time, its what I am stuck with.

Anyway, I am using the bitmapData class to create transparent bitmaps, the problem is that I am loading the bitmaps from a 24 bit bitmap source and I need to include an alpha channel for the application to work properly.
Here is an example of how the bitmap is loaded:

_root.createEmptyMovieClip("EarthHeight"
, 1);
var Height = BitmapData.loadBitmap("earthheight");
var HMap = new HeightMap();
HMap.GreyScale(Height);
EarthHeight.attachBitmap(Height, 2);

Whenever I get or set I pixel I use the getPixel32 and setPixel 32 methods. I assume that since it is not working properly the extra 8 bits of information describing the alpha of the pixel are being discarded. Does anyone know a way to fix this problem, IE convert a 24 bit bitmap into a 32 bit bitmap with alpha channel.

BBS Signature

None

Disarray-yarrasiD

Reply To Post Reply & Quote

Posted at: 6/30/08 09:51 PM

Disarray-yarrasiD DARK LEVEL 09

Sign-Up: 11/14/04

Posts: 1,474

help would be really appreciated

BBS Signature

None

Disarray-yarrasiD

Reply To Post Reply & Quote

Posted at: 6/30/08 10:17 PM

Disarray-yarrasiD DARK LEVEL 09

Sign-Up: 11/14/04

Posts: 1,474

nvm, had to convert it nto a png.

BBS Signature

All times are Eastern Standard Time (GMT -5) | Current Time: 04:43 PM

<< Back

This topic is 1 page long.

<< < > >>
You need a Grounds Gold Account to post on the NG BBS! If you don't have one, click here to sign up now! It's fast, free, and easy — and opens up tons of great NG features!