[Mono-list] PIxbuf loading optimization

Salvatore Scarciglia s.scarciglia at hyperphar.com
Mon Feb 20 10:42:17 EST 2006


Hi all,
I'm developing a small image viewer in mono (mono+glade+monodevelop); my app
works fine but pixbuf loading. I want to read the content of a folder in the
filesystem and, for each image found inside current folder, create a small thumb
in a TreeView with a CellRendererPixBuf and other information about image.
When the folder contain small images, the loading of its content is fast; but
if I try to "browse" a folder containing a lot of wallpaper (1024x768 images,
up to 300kb each one) the application freeze. I've to wait a few minutes
before using the app again. 
I'm using Thread to load the image into a pixbuf object, so the first image
you see in the treeview is a small image, replaced at runtime by the original
picture when the Thread has finished loading it. 

Any suggestion ?

Thanx


Salvatore ---------------------<|
LAAS --------------------------<|
http://laas.altervista.org ----<|


More information about the Mono-list mailing list