Hi,
I have a quick question, I'm not sure if there is a positive answer.
Is there a way to get a list of thumbnails for a directory, that doesn't use lots of memory? Currently my application pulls in all the files, then resizes them, then shows them. It's heavy on the CPU and causes some load time.
I'm wondering if it's possible to pull in these images in some way which doesn't have to read each and every file. A little like in windows explorer when you select a folder with images, and it may show you the large icons on the right, is there a less costly way to do this?
Currently I use the path to create an ImageIcon, then get a scaled instance of it, surely this isn't the most efficient way?
Thanks!
I have a quick question, I'm not sure if there is a positive answer.
Is there a way to get a list of thumbnails for a directory, that doesn't use lots of memory? Currently my application pulls in all the files, then resizes them, then shows them. It's heavy on the CPU and causes some load time.
I'm wondering if it's possible to pull in these images in some way which doesn't have to read each and every file. A little like in windows explorer when you select a folder with images, and it may show you the large icons on the right, is there a less costly way to do this?
Currently I use the path to create an ImageIcon, then get a scaled instance of it, surely this isn't the most efficient way?
Thanks!
