J
Jonas
Hi!
When i use the code below to convert a wmf to a jpg image, the output will
always be with a black backgound.
("data" is a byte array containing the WMF file)
System.IO.MemoryStream ms = new MemoryStream(data,0,data.Length);
ms.Write(data,0,data.Length);
ms.Position = 0;
System.Drawing.Image img = System.Drawing.Image.FromStream( ms );
this.Response.Clear();
this.Response.ContentType = "image/jpg";
img.Save(this.Response.OutputStream,
System.Drawing.Imaging.ImageFormat.Jpeg);
Does anyone have a solution?
/Jonas
When i use the code below to convert a wmf to a jpg image, the output will
always be with a black backgound.
("data" is a byte array containing the WMF file)
System.IO.MemoryStream ms = new MemoryStream(data,0,data.Length);
ms.Write(data,0,data.Length);
ms.Position = 0;
System.Drawing.Image img = System.Drawing.Image.FromStream( ms );
this.Response.Clear();
this.Response.ContentType = "image/jpg";
img.Save(this.Response.OutputStream,
System.Drawing.Imaging.ImageFormat.Jpeg);
Does anyone have a solution?
/Jonas