Le 16/04/2012 12:36, M. Cs. a écrit : > There you are! > It requires Imagemagick to be installed. > There are possible downsides of the Picture.Load(mypicture): > - If the image mypicture is broken or 0 sized, the program will fail > to load, and crash. > - The 'convert' of Imagemagick sometimes creates broken thumbnails, so > I had to build in a size check with Stat(mypicture).Size. > > Csaba >
OK I see. So the behaviour is normal: Picture[] is really an image cache that loads a specific path once. To flush it entirely, you must call Picture.Flush() (hard to guess, isn't it?). Or you can assign a specific key: Picture[path] = ... And yes, Picture.Load() will raise an error if it cannot load an image. But it should not crash the interpreter. Regards, -- Benoît Minisini ------------------------------------------------------------------------------ For Developers, A Lot Can Happen In A Second. Boundary is the first to Know...and Tell You. Monitor Your Applications in Ultra-Fine Resolution. Try it FREE! http://p.sf.net/sfu/Boundary-d2dvs2 _______________________________________________ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user