saveFileDialog.Filter = "Jpg 图片|*.jpg|Bmp 图片|*.bmp|Gif 图片|*.gif|Png 图片|*.png|Wmf  图片|*.wmf";
            saveFileDialog.FilterIndex = 0;
            if (pic_Spare.Image == null)
            {
                MessageBox.Show("没有预览图片!","提示:",MessageBoxButtons.OK,MessageBoxIcon.Error);
            }
            else if (saveFileDialog.ShowDialog() == DialogResult.OK)
            {
                if (pic_Spare.Image != null)
                {
                    pic_Spare.Image.Save(saveFileDialog.FileName, System.Drawing.Imaging.ImageFormat.Jpeg);
                }
            }

posted on 2010-12-20 11:08  努力实现目标  阅读(3949)  评论(0编辑  收藏  举报