Stream stream = new MemoryStream(); myImage.Save(stream, ImageFormat.Bmp); result = stream;
using (Image image = Image.FromStream(stream)) { // Upon success image contains the bitmap // and can be saved to a file: image.Save(fileName); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)