Hi all,

I'm pleased to announce that thanks to the help here,
I've now managed to get some pictures animating.

The Fl_Pixmap::uncache() tip was the crucial hint for
the backend side of things. Although (for now) the GIF
images cannot force a redraw of themselves, once their
containers do a redraw, the actual animation is visible.

In other words, by telling Fl_Help_View to redraw ten
times a second, the animation shows fine. (If the
animation runs at 25 frames per second, some frames
will obviously not be visible- the GIF animation is
independent from the refresh rate of its container).

The main issue to address now is that in a static GIF
image, typically the image size is identical to the
size of its canvas. In animated GIF files, any frame
may be much smaller than the dimensions of the animation
(to save space).

All good and well, but our original GIF decoder did
not take this distinction into account, so the variables
"Width" and "Height" in the code can take on the meaning
of either "Canvas Width/height" or "Frame width/height"
interchangeably, which can get a bit confusing if it's
not made explicit.

So now I'm off to figure out which is which.

Best,
Marc

_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to