我想使用emf格式的內存流對象保存位圖圖像。當我使用的保存方法,它拋出以下異常:使用內存流保存位圖格式爲emf格式
代碼:
Bitmap image = new Bitmap(Server.MapPath("Stacking.Png"));
MemoryStream stream = new MemoryStream();
image.Save(stream, ImageFormat.Emf);
請給我解釋一下是什麼原因造成這個錯誤,我怎麼能保存在EMF格式文件?
感謝和問候,
阿南德
是否有可能使用c#將位圖中的png文件轉換爲emf格式? – Anandaraj 2013-05-13 11:51:10
是的,如果你創建你自己的轉換器。 [維基](http://en.wikipedia.org/wiki/Vectorization_(image_tracing))。 – AgentFire 2013-05-13 12:15:14