The exact answer given here.
Image Dummy = Image.FromFile("image.png");
Dummy.Save("image.bmp", ImageFormat.Bmp);
Since you do not want to follow this method, you can do it the way you answered Stecya
.
Just do it like that.
Stream stream;
Dummy.save(stream, ImageFormat.Bmp)
source
share