On Jan 4, 2010, at 11:58 PM, Alex Harrington wrote: >> That's a misunderstanding - loading a bitmap in another thread is ok, >> calling image.setBitmap() in another thread won't work. The problem >> is >> that this changes the scene while it's being rendered. >> >> How bad is the delay now? Maybe resizing the image before it's added >> to the scene is the only possibility. > > OK - sorry! > > It's down to virtually nothing on my laptop but on "target > hardware" (ie something like an Acer Aspire Revo) we're at 1/4 - 1/2 > second or there abouts. It's very noticable when there's something > scrolling around the screen that it pauses while a new picture loads. > > I'll look at using PIL to resize the image before it gets to libavg. > What's the constructor I should use with avg.Bitmap to let me load a > string in to it? I tried avg.Bitmap() and avg.Bitmap(image from PIL > as string) but neither work. I've only got what I have now > avg.Bitmap(filename) working.
There's a bitmap constructor that takes a point, a pixel format and a string, in that order. Cheers, Uli -- Any technology distinguishable from magic is insufficiently advanced. Ulrich von Zadow | +49-172-7872715 Jabber: [email protected] Skype: uzadow _______________________________________________ libavg-users mailing list [email protected] https://mail.datenhain.de/mailman/listinfo/libavg-users
