G
Guest
I'm using the System.Drawing.Bitmap class for loading a 32-bit bmp file which
includes an alpha channel.
The problem is, when it gets loaded (just using the Bitmap(string filename)
constructor), it doesn't bother bringing the alpha along with it. All of the
pixels just show "255" as their alpha value and Bitmap.IsAlphaPixelFormat()
returns false.
I know that the alpha does exist physically and has worked with this exact
image in other contexts. So, does anyone know how I can make Bitmap behave
and actually give me my alpha channel in the file? Thanks much.
includes an alpha channel.
The problem is, when it gets loaded (just using the Bitmap(string filename)
constructor), it doesn't bother bringing the alpha along with it. All of the
pixels just show "255" as their alpha value and Bitmap.IsAlphaPixelFormat()
returns false.
I know that the alpha does exist physically and has worked with this exact
image in other contexts. So, does anyone know how I can make Bitmap behave
and actually give me my alpha channel in the file? Thanks much.