Re: Gdk PixbufAnimation supported formats



On Thu, Apr 18, 2013 at 12:40 AM, Kip Warner <kip thevertigo com> wrote:

Thanks Tadej. It looks like the only format that supports animation that
 I can see on my system, and perhaps everywhere at best, is GIF. Do you
have any suggestions for another approach to a simple animation that
supports transparency and more than 8 bit colour?


You can make a few png or jpg frames and hook up a g_timeout_add() callback
to
set the pixbuf on a GtkImage. I done similar when I needed to dynamically
scale animated gifs. Be sure to stop your timeout on unmap()/unrealize(),
especially if you have more than a handful of animated images instantiated
anywhere.


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