No transperancy in Bitmap loading from MemoryStream
- by Jogi Joseph George
Please see the C# code. When i am writing a Bitmap to a file and read from the file, i am getting the transperancy correctly.
using (Bitmap bmp = new Bitmap(2, 2))
{
Color col = Color.FromArgb(1, 2, 3, 4);
bmp.SetPixel(0, 0, col);
bmp.Save("J.bmp");
}
using (Bitmap bmp = new…