Re: how to make an animation ;)
- From: Enrico Sardi <enricoss tiscali it>
- To: gtk-app-devel-list gnome org
- Subject: Re: how to make an animation ;)
- Date: Fri, 09 Feb 2007 13:39:17 +0100
tomas tuxteam de pronuncio' le seguenti parole il 09/02/2007 10:19:
Hi Tomas!
The problem with this is that it'll keep your program (and most of your
computer ;) busy with the job. Better use a timer (or an idle) callback.
Even better: pixbufs know about animations and do it for you! With
gdk_pixbuf_animation_new_from_file()[1] you can load an animation from a
file (there are other functions aroud there if you want to build-up the
anim frame-by-frame). You can put this animated pixbuf in a GtkImage the
usual way with gtk_image_set_from_pixbuf()[2]
I saw gdk_pixbuf_animation_new_from_file but it only works with an
animated file as input while I need to build the animation from a series
of indipendent files...thanks for the help!
Enrico
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]