public static void Run()
{
// ExStart:ConvertWMFMetaFileToSVG
// The path to the documents directory.
string dataDir = RunExamples.GetDataDir_ModifyingAndConvertingImages();
// Create an instance of Image class by loading an existing .
using (Image image = Image.Load(dataDir + "input.wmf"))
{
// Create an instance of EmfRasterizationOptions class.
EmfRasterizationOptions options = new EmfRasterizationOptions();
options.PageWidth = image.Width;
options.PageHeight = image.Height;
// Call save method to convert WMF to SVG format by passing output file name and SvgOptions class instance.
image.Save(dataDir + "ConvertWMFMetaFileToSVG_out.svg", new SvgOptions { VectorRasterizationOptions = options });
}
// ExEnd:ConvertWMFMetaFileToSVG
}
}