   Loading and displaying multiple image
  Hi,Can somebody suggest an algorithm in loading and displaying multiple image files that is effective and consumes less memory?lets say for example; I will load 1000 images with an average of 1mb each in size. If i load all images i will consume almost 1GB of memory for the images alone.Only few images is visible to the user at a time, user scrolls thru the images.In my application, only 5 images are presented to the user at a time; these are2 previous images to its left, the current image selected at the center and 2 next images at its right, user then scrolls thru this image, fast scroll is also supported.Hope you get the idea on what im triying to achieve.Thanks.   
  This is not an algorithm, just an idea: how about loading only the ones that the user can see, and then a few to either side of the scroll bar? For instance, if the user can see 5 images at the time, you could load those 5 images, 2 images to the left and other 2 to the right, resulting in 9 images loaded. Then, when the user scrolls one image to the right, you could unload the leftmost one and load another one to the right.Another solution could be generating thumbnails of the images and loading those, which would consume much less memory than loading the real images, and only load the real thing when the user requests it.   ;Quote:Original post by ArreisThis is not an algorithm, just an idea: how about loading only the ones that the user can see, and then a few to either side of the scroll bar? For instance, if the user can see 5 images at the time, you could load those 5 images, 2 images to the left and other 2 to the right, resulting in 9 images loaded. Then, when the user scrolls one image to the right, you could unload the leftmost one and load another one to the right.Another solution could be generating thumbnails of the images and loading those, which would consume much less memory than loading the real images, and only load the real thing when the user requests it.Ive got similar idea at first, but how bout if user scrolls fast?   ;  If you're allowing the user to scroll fast, the only solution I can think of is to use thumbnails. That, or show a fixed "no image yet" image, similar to what browsers do when they haven't loaded the images of a site, but that's not a real solution, just a way to forget about your problem.Once again, I'm no expert, so other people could probably give better advice. Sorry :P   