PictureBox loadpicture() array or collection urgent??
Posted on 2005-05-02
Hi, I am currently populating a file that contains all *jpg or *bmp etc.. images and there path name..then I am using an array to read each line in the file with the paths and loading the images to a picture box using an array. When the image is loaded I am checking for a specific pixel color on the image if its found then i add the filename to a listbox...
My real question is ..is there a faster way to load all images to a picturebox witout using an array or is the array the best solution..I hear about collections but I have not dealt with collections..If creating a collection is faster to use then using an array how can I create the collection to load all images that i retrive from the HD?
The array loads an image 1 by 1 then the its checks for the pixel match, then the next image is loaded for the next check etc..
Or if there is another possible solution to speed the process up? any ideas? thanks!