示例#1
0
        private void RefreshSvg()
        {
            string svg     = Potrace.getSVG();
            string StdPath = Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData, Environment.SpecialFolderOption.Create) + "\\Drawing3d.svg";

            System.IO.StreamWriter W = new System.IO.StreamWriter(StdPath);
            W.WriteLine(svg);
            W.Flush();
            W.Close();
            webSvg.Navigate(new Uri(StdPath));
        }
示例#2
0
 private void ExportSVG(object sender, RoutedEventArgs e)
 {
     if (sourceImage == null)
     {
         return;
     }
     if (SaveFileDialog.ShowDialog() == true)
     {
         string svg               = Potrace.getSVG();
         string StdPath           = SaveFileDialog.FileName;
         System.IO.StreamWriter W = new System.IO.StreamWriter(StdPath);
         W.WriteLine(svg);
         W.Flush();
         W.Close();
     }
 }