I want to save a bitmap image using memory stream object in emf format. When I used save method, it throws following exception:
Code:
Bitmap image = new Bitmap(Server.MapPath("Stacking.Png"));
MemoryStream stream = new MemoryStream();
image.Save(stream, ImageFormat.Emf);
Please explain me what is causing this error and how can I save the file in emf format?
Thanks and regards,
Anand