[libavg-users] Adding images inside a frame handler

Alex Harrington alex at longhill.org.uk
Mon Jan 4 23:58:08 CET 2010


> 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.

Cheers

Alex

This email carries a disclaimer, a copy of which may be read at http://learning.longhill.org.uk/disclaimer
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/ms-tnef
Size: 3436 bytes
Desc: not available
Url : http://mail.datenhain.de/pipermail/libavg-users/attachments/20100104/8410ef13/attachment.bin 


More information about the libavg-users mailing list