Load Bitmap problem
-
In my program ,I create a new Bitmap use Bitmap bmp = new Bitmap(200,200); and I use the GetPixel() method to get the color info. the result is [Color A = 0 R = 0 B = 0 G = 0] and then I save it use the bmp.Save("C:\\ss.bmp",ImageFormat.Bmp) but when I reload it Use the Image.FromFile() I found that the color change to [Color A = 255 R = 0 B = 0 G = 0] how can I resolve this problem?:confused:
-
In my program ,I create a new Bitmap use Bitmap bmp = new Bitmap(200,200); and I use the GetPixel() method to get the color info. the result is [Color A = 0 R = 0 B = 0 G = 0] and then I save it use the bmp.Save("C:\\ss.bmp",ImageFormat.Bmp) but when I reload it Use the Image.FromFile() I found that the color change to [Color A = 255 R = 0 B = 0 G = 0] how can I resolve this problem?:confused:
I'm not sure, whether bmp file format does support alpha channel...:~ Try using other ImageFormat (maybe Png format can be better) i'm only pointer to myself