示例#1
0
 /// <summary>
 /// Export the mesh to PNG format.
 /// </summary>
 /// <param name="mesh">The current mesh.</param>
 /// <param name="filename">The PNG filename.</param>
 /// <param name="type">Image type (0 = png, 1 = eps, 2 = svg).</param>
 /// <param name="width">The desired width of the image.</param>
 /// <param name="compress">Use GZip compression (only eps or svg).</param>
 public void Export(Mesh mesh, string filename, int type, int width, bool compress)
 {
     if (type == 1)
     {
         ExportEps(mesh, filename, width, compress);
     }
     else if (type == 2)
     {
         ExportSvg(mesh, filename, width, compress);
     }
     else
     {
         ImageRenderer.Save(mesh, filename, width);
     }
 }