Next: Image Cache, Previous: Showing Images, Up: Images
Some image files can contain more than one image. This can be used to create animation. Currently, Emacs only supports animated GIF files. The following functions related to animated images are available.
This function returns non-
nilif image can be animated. The actual return value is a cons(nimages.delay), where nimages is the number of frames and delay is the delay in seconds between them.
This function animates image. The optional integer index specifies the frame from which to start (default 0). The optional argument limit controls the length of the animation. If omitted or
nil, the image animates once only; iftit loops forever; if a number animation stops after that many seconds.
Animation operates by means of a timer. Note that Emacs imposes a minimum frame delay of 0.01 seconds.