如果读取指定路径下的所有子文件夹里面的图像:
path:='.'
list_image_files(path,'default','recursive',ImageFiles)
for i:= 0 to |ImageFiles|-1 by 1
read_image(Image, ImageFiles[i])
stop()
endfor
如果只是读取 bmp格式的图像,则代码如下:
path:='.'
list_image_files(path,'bmp','recursive',ImageFiles)
for i:= 0 to |ImageFiles|-1 by 1
read_image(Image, ImageFiles[i])
stop()
endfor