private void Img_save(object sender, RoutedEventArgs e) { SaveFileDialog dialog = new SaveFileDialog(); dialog.InitialDirectory = Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments); if (dialog.ShowDialog() == true) { ImgConverter.CreateBitmapFromVisual(ImgCanvas, dialog.FileName); } }