Re: how to make an animation ;)
- From: tomas tuxteam de
- To: Enrico Sardi <enricoss tiscali it>
- Cc: gtk-app-devel-list gnome org
- Subject: Re: how to make an animation ;)
- Date: Sun, 11 Feb 2007 05:50:25 +0000
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Fri, Feb 09, 2007 at 01:39:17PM +0100, Enrico Sardi wrote:
tomas tuxteam de pronuncio' le seguenti parole il 09/02/2007 10:19:
Hi Tomas!
[...]
Even better: pixbufs know about animations and do it for you! [...]
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!
Yes. Well, either you go Olivier's path (concoct an animated GIF with
all your images -- you can even embed timing info in that), or you start
with
gdk_pixbuf_simple_anim_new()
-- Creates a new, empty animation.
and add frame by frame with:
gdk_pixbuf_simple_anim_add_frame()
-- Adds a new frame to animation.
In a timeout function (or possibly in an idle handler) you might have to
call gdk_pixbuf_animation_iter_advance() (I don't know if that's done
for you). The whole page
<http://developer.gnome.org/doc/API/2.0/gdk-pixbuf/gdk-pixbuf-animation.html>
is worth a read.
Regards
- -- tomÃs
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
iD8DBQFFzq6hBcgs9XrR2kYRAmE1AJ97E0EFY5IhTWerRPFCiCjJm/GmgQCfSDY6
fYb3nfhBh0DKznBgv2lazu0=
=FGBc
-----END PGP SIGNATURE-----
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]