保存图像而不保存文件对话框 [英] save image without save file dialog

查看:74
本文介绍了保存图像而不保存文件对话框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想直接在运行时选择的文件夹中保存快照,而在Windows应用程序中没有保存文件"对话框.当我选择一个驱动器时,将创建该文件夹.请帮帮我... !!

 myImage.Save( @" ,System.Drawing.Imaging.ImageFormat.Jpeg); 


http://msdn.microsoft.com/en-us/library/9t4syfhh.aspx [ ^ ]


I want to save snapshot taken directly in folder that i have selected on run time with out "save-file" dialog in my windows application..!! the folder will be created when i select a drive..!! please help me...!!

解决方案

So don''t create a SaveFileDialog and call ShowDialog on it: just save the image.

myImage.Save(@"D:\Temp\myImage.jpg", System.Drawing.Imaging.ImageFormat.Jpeg);


http://msdn.microsoft.com/en-us/library/9t4syfhh.aspx[^]


这篇关于保存图像而不保存文件对话框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆