图像文件 [英] Image files
本文介绍了图像文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
亲爱的所有人,
我已经写了我的字符串arry,如:
Dear All,
I have written my string arry like:
string[] strImagePaths = new string[] { @"D:\HP\AA98020D[1].TIF", @"D:\HP\AA98020D[2.TIF" };
我在一个文件夹中有两个图像文件.如果我有n个文件,那么如何传递?
请提出建议.
谢谢
I have two image files in one folder. If I have n-No of files than how to pass?
Please suggest.
Thanks
推荐答案
请参见下面的代码
see the below code
DirectoryInfo dfo = new DirectoryInfo(@"D:\HP");
FileInfo[] fno = dfo.GetFiles();
foreach (FileInfo f in fno)
MessageBox.Show(f.FullName);
代替字符串数组,请使用FileInfo Array,这很有用..
instead of string array use FileInfo Array, which is useful ..
这篇关于图像文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文