[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: how to show an animated gif



> Hi,
> 
> a simple question(,but maybe a complicated answer):
> 
> How can I display an animated gif within a gtk widget?
> 
> Any help very appreciated,
> Steffen

I've done this once before in another toolkit but with animated Targa's.

What you'll need to do on your own is load each frame or have a structure
that contains referances to each frame on file (to save memory) of the
image file in question (your .gif file).

A gtk_callback should be used to display each frame, from (preferably)
loaded pixmap to a gtk drawing area widget. Remember to return TRUE on
your timeout callback function so that it will be called again.


--
Sincerely,                  ,"-_                         \|/
-Taura                      ,   O=__                    --X--
..__                         ,_JNMNNEO=_                 /|\
OMNOUMmnne.                  {OMMNNNEEEEOO=_
UOOOBIOOOEOMMn.               'LONMMMMNNEEEOOO=.__..,,..
UUOOEUUOOOOOOOObe              '"=OMMMMWNEEEOOOOO,"=OEEEOO=,._
OOUUUIEEIOONNOIUbe.                "7OMMMMNNNNNWWEEEEOOOOOO"   "'.
EEBNNMMMNWNWWEEIMMNe.             __  7EMMMNNNNNWWWEEEEEEEOO.     " .
NNMMMMWWWMMMWEINMMMNn            "=BBEEEEMMMMMMMMNNNWWWEEOOOOO=._     .
                  http://furry.ao.net/~learfox/



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]