Commit fc5d3730 张东亮

1

1 个父辈 11256e4a
...@@ -419,13 +419,13 @@ namespace SmartScan ...@@ -419,13 +419,13 @@ namespace SmartScan
if (bmp == null) return; if (bmp == null) return;
SaveFileDialog dlg = new() { Filter = "JPEG图片|*.jpg|BMP图片|*.bmp|PNG图片|*.png" }; SaveFileDialog dlg = new() { Filter = "JPEG图片|*.jpg|BMP图片|*.bmp|PNG图片|*.png" };
if (dlg.ShowDialog() != DialogResult.OK) return; if (dlg.ShowDialog() != DialogResult.OK) return;
bmp.Save(dlg.FileName);
switch (dlg.FilterIndex) //switch (dlg.FilterIndex)
{ //{
case 0: bmp.Save(dlg.FileName, System.Drawing.Imaging.ImageFormat.Jpeg); break; // case 1: bmp.Save(dlg.FileName, System.Drawing.Imaging.ImageFormat.Jpeg); break;
case 1: bmp.Save(dlg.FileName, System.Drawing.Imaging.ImageFormat.Bmp); break; // case 2: bmp.Save(dlg.FileName, System.Drawing.Imaging.ImageFormat.Bmp); break;
case 2: bmp.Save(dlg.FileName, System.Drawing.Imaging.ImageFormat.Png); break; // case 3: bmp.Save(dlg.FileName, System.Drawing.Imaging.ImageFormat.Png); break;
} //}
string text = Asa.FaceControl.Language.Dialog(LanguageDialogKey.SAVE_SUCCEED); string text = Asa.FaceControl.Language.Dialog(LanguageDialogKey.SAVE_SUCCEED);
new Asa.FaceControl.FaceMessageBox("", text, MessageBoxButtons.OK).ShowDialog(); new Asa.FaceControl.FaceMessageBox("", text, MessageBoxButtons.OK).ShowDialog();
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!