不使用openfiledialog打开法师文件 [英] Open an mage file without using openfiledialog

查看:88
本文介绍了不使用openfiledialog打开法师文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何使用FileStream在不使用OpenFileDialog的情况下打开图像?

how can open an image without using the OpenFileDialog, using the FileStream?

推荐答案

Try:

Try:

FileStream stream = new FileStream(Application.StartupPath + @"\Output\dataPriorCtr.jpg", FileMode.Open)



Application.StartupPath + @"\ Output \ dataPriorCtr.jpg"->替换为您的图片路径



Application.StartupPath + @"\Output\dataPriorCtr.jpg" -> Replace with your image path


这篇关于不使用openfiledialog打开法师文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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