Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

tk::animation(3) [centos man page]

Animation(3)						User Contributed Perl Documentation					      Animation(3)

NAME
Tk::Animation - Display sequence of Tk::Photo images SYNOPSIS
use Tk::Animation my $img = $widget->Animation('-format' => 'gif', -file => 'somefile.gif'); $img->add_frame(@images); $img->start_animation; $img->start_animation( $period ); $img->next_image; $img->prev_image; $img->set_image( 0 .. $#frames ); $img->pause_animation; $img->resume_animation( $period ); $img->fast_forward( $multiplier ); $img->fast_reverse( $multiplier ); $img->stop_animation; $img->set_disposal_method( $boolean ); DESCRIPTION
In the simple case when "Animation" is passed a GIF89 style GIF with multiple 'frames', it will build an internal array of "Photo" images. The "add_frame" method adds images to the sequence. It is provided to allow animations to be constructed from separate images. All images must be "Photo"s and should all be the same size. "start_animation($period)" then initiates a "repeat" with specified $period to sequence through these images. As for raw "repeat" $period is in milliseconds, for a 50Hz monitor it should be at least 20ms. If $period is omitted it is determined from the GIF metadata (see below), or if this is not possible it defaults to 100 milliseconds. "stop_animation" cancels the "repeat" and resets the image to the first image in the sequence. For fine-grained control "next_image" and "prev_image" move one frame forward or backward. "set_image" randomly positions the animation to a particular frame. "pause_animation" pauses the movie and "resume_animation" continues from the pause point. "fast_forward" and "fast_reverse" speed through the movie either forwards or backwards. $multiplier specifies how much faster the animation moves. If Image::Info is installed, then the repeat period time and disposal method of GIF animations are determined from the GIF metadata directly. Otherwise the disposal method must be set manually by using "set_disposal_method" (1 for blanking the previous images, 0 for leaving the previous images as is). The repeat period time may be given in the "start_animation" method. NOTES
"set_disposal_method" was formerly known as "blank" method, but the naming of this method was a mistake. If the disposal method is not set correctly, either by "set_disposal_method" or by determining from the GIF metadata, then the following may happen: By default Animation leaves the previous movie frame in the animation photo. Many times overlaying subsequent frames produces a composite that looks blurred. BUGS
This module should not depend on a module which is not declared as a dependency (Image::Info). The delays between images may vary in a GIF animation. This cannot be handled by this module yet. The handling of the various disposal methods is not correct. perl v5.16.3 2014-06-10 Animation(3)

Check Out this Related Man Page

img-intro(3tk)															    img-intro(3tk)

NAME
img-intro - Introduction to Img SYNOPSIS
package require Tk package require Img ?1.3? DESCRIPTION
Img is a Tk extension, adding support for many other Image formats, as listed below. The individual formats are described in more detail on their own pages. bmp Windows bitmap format. See img-bmp. gif The venerable graphics interchange format (with transparency, but without LZW. The latter due to patent issues). See img-gif. ico Windows icon files. See img-ico. jpeg The format for lossy compressed still pictures specified by the Joint Picture Experts Group. See img-jpeg. pcx Paintbrush image format. See img-pcx. pixmap While the other formats are handlers for the Tk photo image type this is a new image type for Tk. See img-pixmap. png Portable Network Graphics, successor to GIF. See img-png. ppm Portable Pixmaps. See img-ppm. ps Postscript and PDF (Portable document format). Requires an external application, ghostview, for its operation. See img-ps. sgi Native SGI format. See img-sgi. sun Sun raster images. See img-sun. tga Targa files. See img-tga. tiff Tagged Interchange File Format. See img-tiff. window ??? See img-window. xbm X Bitmaps. See img-xbm. xpm X Pixmaps. See img-xpm. This version only works with Tcl/Tk 8.2 or higher. If you are using Tk 8.1 or lower please stick with Img 1.2.4 (which is still available). And if you are using Tk4.2 or lower, please stick with Img 1.1.4 (which is also still available). SEE ALSO
img-bmp, img-gif, img-ico, img-jpeg, img-pcx, img-pixmap, img-png, img-ppm, img-ps, img-sgi, img-sun, img-tga, img-tiff, img-window, img- xbm, img-xpm KEYWORDS
bmp, gif, ico, image handling, jpeg, pcx, pdf, pixmap, png, postscript, ppm, ps, sgi, sun, tga, tiff, tk, window, xbm, xpm COPYRIGHT
Copyright (c) 1995-2003 Jan Nijtmans <nijtmans@users.sourceforge.com> Img 1.3 img-intro(3tk)
Man Page