从目录中读取图像 [英] read images from directory

查看:70
本文介绍了从目录中读取图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述




我已经有了这段编码,可以在一个文件夹中显示图像,并允许我使用xml为图像添加标题。我有的问题是,一旦它读取文件夹混合图像....而不是按顺序列出它们1,2,3,4,5它从1开始,然后任何数字将跟随。我怎么能阻止它这样做。


这里是代码

展开 | 选择 | 换行 | 行号

解决方案

如何确定


item ?看起来,你按照数组的顺序显示图像。也许一些数组排序函数会帮助你。


我不得不通过3个教程来解决这个问题......我可以在哪里找到数组排序函数教程?

hi,

I''ve got this piece of coding which displays the images within a folder and allows me to add captions to the images using xml. the problem im having is once it reads the folder it is mixing the images up....instead of listing them in order like 1,2,3,4,5 it starts with 1 and then any number will follow. how can i stop it from doing this.

here is the code

Expand|Select|Wrap|Line Numbers

解决方案

how do you determine


item? as it looks, you''re displaying the images in the order of the array. maybe some of the array sorting functions will help you.


i had to go through 3 tutorials to get this far with the code....where can i go for the array sorting functions tutorial?


这篇关于从目录中读取图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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