//保存输出信息窗口信息 private void btn_saveInfo_Click(object sender, EventArgs e) { string saveFileName = InitInput.InitSaveFile("文本文件|*.txt"); if (saveFileName != null) { string info = this.richtxb_result.Text.Replace("\n", "\r\n"); StreamWriter sw = new StreamWriter(saveFileName); sw.Write(info); sw.Close(); } }
//保存图片 private void btn_saveImg_Click(object sender, EventArgs e) { IMap pMap = this.axPageLayoutControl1.ActiveView.FocusMap; int count = pMap.LayerCount; if (count > 0) { string savePath = InitInput.InitSaveFile("bmp图像|*.bmp"); DataShowControl.SaveCurrentToImage(this.axPageLayoutControl1, savePath); MessageBox.Show("图像保存成功!"); } }
//保存插值结果影像 private void btn_save_Click(object sender, EventArgs e) { this.txb_output.Text = InitInput.InitSaveFile("栅格数据集|*.tif"); }