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)); }
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(); } }