在循环读取文件的位置时,常用到数字与字符的转换。

  • 数字与字符的转换
将字符转换为数字
tuple_number(StringImageIndex,IntImageIndex)`
  • 1
  • 2
  • 1
  • 2
将数字转换为字符
tuple_string (IntImageIndex, '0', StringImageIndex)
  • 1
  • 2
  • 1
  • 2
  • 循环读取图片 
      这其中就利用了tuple_string将数字转化为字符,从而实现读取地址的改变。
Count:= 1
for Index := 1 to 5 by 1
    tuple_string (Index, '0', StringIndex)
    filename := 'F:\\SZWX912\\TestImage\\'+StringIndex+'.bmp'
    read_image (Image, filename)
endfor
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
 
 

相关文章:

  • 2021-12-06
  • 2022-12-23
  • 2022-12-23
  • 2021-04-12
  • 2022-12-23
  • 2021-08-07
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-05-25
  • 2022-12-23
  • 2021-07-24
  • 2021-12-15
  • 2022-12-23
相关资源
相似解决方案