I am processing small images in an Application. For each pixel I need to store an integer between 40 and 90. I don't know how large the image is until runtime and in a session several images may be processed. I am thinking of using a datatable because it's easy but if an image is 400X500 that means adding 400 columns and 500 rows. A 3d array or list is good but the object needs to be public and resized after an image is loaded. A matrix is a possibility too. The big issue is resizing the object at runtime. I might write it out to a temp csv file and reload it when I need it. Suggestions please.
What I have tried:
Writing it out and arrays but can't resize public arrays at runtime