Beispiel #1
0
 /// <summary>
 /// Export data from an image layer.
 /// </summary>
 /// <param name="data">The image data.</param>
 public void ExportData(IImageData data)
 {
     using var sfd = new SaveFileDialog
           {
               Filter = DataManager.DefaultDataManager.RasterWriteFilter
           };
     if (ShowDialog(sfd) == DialogResult.OK)
     {
         data.SaveAs(sfd.FileName);
     }
 }
 /// <summary>
 /// Export data from an image layer.
 /// </summary>
 /// <param name="e"></param>
 public void ExportData(IImageData e)
 {
     using (var sfd = new SaveFileDialog
         {
             Filter = DataManager.DefaultDataManager.RasterWriteFilter
         })
     {
         if (ShowDialog(sfd) == DialogResult.OK)
         {
             e.SaveAs(sfd.FileName);
         }
     }
 }