var visio = new Diagram("template.vtx"); visio.Save("output.bmp", SaveFileFormat.BMP);