1 <!-- ##### SECTION Title ##### -->
4 <!-- ##### SECTION Short_Description ##### -->
5 Animations as multi-frame structures.
7 <!-- ##### SECTION Long_Description ##### -->
9 The GdkPixbuf library provides a simple mechanism to load and
10 represent animations, primarily animated GIF files. Animations
11 are represented as lists of #GdkPixbufFrame structures. Each
12 frame structure contains a #GdkPixbuf structure and information
13 about the frame's overlay mode and duration.
17 <!-- ##### SECTION See_Also ##### -->
23 <!-- ##### ENUM GdkPixbufFrameAction ##### -->
25 Each animation frame can have several things happen to it when the
26 next frame is displayed. The #GdkPixbufFrameAction determines this.
27 If a frame as marked as @GDK_PIXBUF_FRAME_RETAIN, then the image
28 will remain displayed, and will be potentially occluded by the next
29 frame. If it is marked as @GDK_PIXBUF_FRAME_DISPOSE, then the
30 animation is reverted to the setting before the frame was shown. If
31 it is marked as @GDK_PIXBUF_FRAME_REVERT, then the animation is
32 reverted to the first image before continuing.
35 @GDK_PIXBUF_FRAME_RETAIN:
36 @GDK_PIXBUF_FRAME_DISPOSE:
37 @GDK_PIXBUF_FRAME_REVERT:
39 <!-- ##### STRUCT GdkPixbufFrame ##### -->
41 This structure describes a frame in a #GdkPixbufAnimation. Each
42 frame consists of a #GdkPixbuf, an offset of the frame within the
43 animation's bounding box, a duration, and an overlay mode or
47 @pixbuf: The frame's image contents.
48 @x_offset: X offset of the frame inside the animation's bounding box.
49 @y_offset: Y offset of the frame inside the animation's bounding box.
50 @delay_time: Duration of the frame in milliseconds.
51 @action: Overlay mode.
53 <!-- ##### STRUCT GdkPixbufAnimation ##### -->
55 This structure describes an animation, which is represented as a
56 list of #GdkPixbufFrame structures.
59 @ref_count: Reference count.
60 @n_frames: Number of frames in the animation.
61 @frames: List of #GdkPixbufFrame structures.
63 <!-- ##### FUNCTION gdk_pixbuf_animation_new_from_file ##### -->
72 <!-- ##### FUNCTION gdk_pixbuf_animation_ref ##### -->
80 <!-- ##### FUNCTION gdk_pixbuf_animation_unref ##### -->
91 sgml-parent-document: ("../gdk-pixbuf.sgml" "book" "refsect2" "")