I have an application that I need to load some images from my folder to the application as a bmp bitmap image and for that purpose I am using the following code:
Then I need to iterate throw each images line by line and make a separate list for each image (list1, list2, etc.) which contains only zero and ones (the images are only black and white)
My problem is for finite number of images I can copy the same code (for example for 5 images) five time, but for large number of images (for example 100 images) is not possible, I just wanted to know how to turn this code in a for loop that looks for a number of images (for example 100) and I get different lists (list1, list2, list3, etc.) as output.
Assuming all files in the path are Images you can do the following:
And it's not a good idea to load (n) images one after each other, because you will only see the last one. So you'd better show one of them, for example: