Thumbnail control and wxImageList limits
Milan Babuskov
milanb at panonnet.net
Thu Feb 15 14:07:27 PST 2007
Stephan Rose wrote:
> I would also advise against loading all the images into an image list. Just
> get out the calculator...
>
> 200x200 pixels at 24 bits per pixel is 117 kb per image. So 117 megs every
> 1,000 images. That is quite some memory consumption just to show a few
> thumbnails on the screen.
>
> I would request the images I want from my data source on the fly and maybe
> cache the last 100 images or so in a circular list so that the oldest ones
> always automatically get thrown out as new images are put in it.
Thanks, I'll keep this in mind.
--
Milan Babuskov
http://www.guacosoft.com
http://www.flamerobin.org
More information about the wx-users
mailing list