Save metafile in C#

Chris Miller picture Chris Miller · Apr 9, 2009 · Viewed 9.6k times · Source

If I have a wmf or emf image in System.Drawing.Image, is there a way to save the metafile data with c# without rendering it as a bitmap? Calling Image.Save will render it to a bitmap and I want to keep the original data so that it would still be a valid .wmf or .emf format file.

Answer

Han picture Han · May 21, 2009

Despite this MSDN page, it is possible to save a true EMF file. See this question: gdi-c-how-to-save-an-image-as-emf