Brian Millham wrote:
I've got a simple script that can display an animated gif.

[snip]

I think that it could be improved.  It's a bit slow loading the gif, and it
doesn't handle the missing information from some frames (changes from
I-frames [in MPEG speak]) and it doesn't handle transparent backgrounds.
Oh, and there's no error checking.

I tried to add enough comments so everyone can understand what I did.

If you make any improvements, please share them with the list (or at least
with me)

Would this be a good script to add as an example script with the Win32::GUI
distribution?

Very nice. There's plenty of alternatives for displaying the image (e.g. drawing it directly into the DC), but this shows all the important steps. I have a policy (open for discussion, of course) of not distributing samples that require modules not distributed with ActiveState Perl or Win32::GUI itself, as I think the samples we distribute should run 'out of the box'.

This is, however, exactly the sort of sample that I'd like to see on the Wiki - http://perl-win32-gui.sourceforge.net/wiki/

Regards,
Rob.

Reply via email to