Im writing a program that works with images and want to have an image preview menu that displays a directory full of images so that the user can see the image and drop and drop the one they want to the main work area.
Ive tested with 20 or 30 images and Ive found loading these images from file to be quite slow and to use a heap of memory. To quote rough figures, for around 20 images, initially the exe gets up to around 250mb then drops down to 150mb and takes around 5 seconds or more to complete. I then used the thumbnail method which showed better results at 150-200mb initially and then down to 40mb, it wasnt much faster at around 5 seconds.
The image res doesnt have to be great as it is only a preview. There has to be a faster way of doing this or is this just a .NET thing?
Any ideas?
Ive tested with 20 or 30 images and Ive found loading these images from file to be quite slow and to use a heap of memory. To quote rough figures, for around 20 images, initially the exe gets up to around 250mb then drops down to 150mb and takes around 5 seconds or more to complete. I then used the thumbnail method which showed better results at 150-200mb initially and then down to 40mb, it wasnt much faster at around 5 seconds.
The image res doesnt have to be great as it is only a preview. There has to be a faster way of doing this or is this just a .NET thing?
Any ideas?