I have Bitmap image with alpha channel transparency. I am converting this BMP image to PNG format. Here is my code:
string tmp = @"c:\mypath\imageName";
using (Bitmap changeFormat = new Bitmap(tmp+".bmp"))
{
changeFormat.Save(tmp + ".png", ImageFormat.Png)
}
Everything is okay. I now have a PNG image but alpha channel is now white instead of transparent (which it was in the BMP image).
Ps:test window XP, that PNG imgae when open in window 7 it ok . And open with Gimp soft.