Re: Load image

Salut Frank,

You must use the gdk_imlib_set_cache_info() call to determine 
how the caching is made. Unless you do this imlib will reuse
an image if it has the same name. I believe that you should
do the following to turn off the caching:


but you should check with the imlib source to make sure.

Have you considered moving over to gdk_pixbuf and perhaps use
the gtk_image_viewer widget?


On Thu, Aug 16, 2001 at 12:03:07PM +0200, Franck wrote:
Lo all;

i'm a new user from this mailing and i'm french. Sorry for my english :((

I have a problem.
I'm generating a dynamic graphic, i'm saving it on my disk and i'm loading it 
with Gtk::Gdk::ImlibImage.
My problem is, if i change one value for the graphic, the picture from my 
disk is OK but the loading picture don't change.

my $im = Gtk::Gdk::ImlibImage->load_image("$picture.png");

If i quit the application and re rerun it, the image is OK

What's the problem ???


gtk-perl-list mailing list
gtk-perl-list gnome org

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]