G
Guest
I need to load Bitmaps and preserve the embedded Alpha channel information.
I tried the methods found here as posted by Alex / XrossGdi+ and also using
NETCF20.
Seemingly ALWAYS after (case1) the .GetObject P/Invoke or (case 2.0) new
Bitmap(filename) is invoked I am loosing the Alpha byte - it is set to FF.
Now, strangely (and unfortunately too slow in real app life) when I use
*target = src.GetPixel(x, y).ToArgb(); (target points to my buffer) I am
getting the correct alpha channel as it is contained in the binary bitmap
file.
Can anybody help here with either some magic to access the (obviously
present somewhere) real bitmap data or a howTo load Bitmaps under NETCF
without killing Alpha?
Thanks ahead!
tb
I tried the methods found here as posted by Alex / XrossGdi+ and also using
NETCF20.
Seemingly ALWAYS after (case1) the .GetObject P/Invoke or (case 2.0) new
Bitmap(filename) is invoked I am loosing the Alpha byte - it is set to FF.
Now, strangely (and unfortunately too slow in real app life) when I use
*target = src.GetPixel(x, y).ToArgb(); (target points to my buffer) I am
getting the correct alpha channel as it is contained in the binary bitmap
file.
Can anybody help here with either some magic to access the (obviously
present somewhere) real bitmap data or a howTo load Bitmaps under NETCF
without killing Alpha?
Thanks ahead!
tb