How can I get the Alpha Mask within a bitmap file?
-
Is this a bitmap in a file, from an HBITMAP? There are loads of resources in MSDN that will help. If you start with GetDIBits, you can follow the documentation from there. *IF* a bitmap has an alpha layer, it will be 4 bytes per pixel, one for R, G, B, and A respectively. (Ok, I'm pretty sure A comes first). You can look at the bitmap header, and see 32 bits per pixel set. It's quite a bit of fiddly work, but not rocket science. Iain.
Plz sir... CPallini CPallini abuz drugz, plz plz help urgent.
-
Is this a bitmap in a file, from an HBITMAP? There are loads of resources in MSDN that will help. If you start with GetDIBits, you can follow the documentation from there. *IF* a bitmap has an alpha layer, it will be 4 bytes per pixel, one for R, G, B, and A respectively. (Ok, I'm pretty sure A comes first). You can look at the bitmap header, and see 32 bits per pixel set. It's quite a bit of fiddly work, but not rocket science. Iain.
Plz sir... CPallini CPallini abuz drugz, plz plz help urgent.