Animation - Online Linux Manual Page

Section : 3pm
Updated : 2020-11-09
Source : perl v5.32.0
Note : User Contributed Perl Documentation

NAMETk::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 );

DESCRIPTIONIn 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 Photos 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.

NOTESset_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.

BUGSThis 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.
0
Johanes Gumabo
Data Size   :   10,250 byte
man-Tk::Animation.3pmBuild   :   2025-03-22, 13:26   :  
Visitor Screen   :   x
Visitor Counter ( page / site )   :   13 / 1,208,770
Visitor ID   :     :  
Visitor IP   :   18.189.194.34   :  
Visitor Provider   :   AMAZON-02   :  
Provider Position ( lat x lon )   :   39.962500 x -83.006100   :   x
Provider Accuracy Radius ( km )   :   1000   :  
Provider City   :   Columbus   :  
Provider Province   :   Ohio ,   :   ,
Provider Country   :   United States   :  
Provider Continent   :   North America   :  
Visitor Recorder   :   Version   :  
Visitor Recorder   :   Library   :  
Online Linux Manual Page   :   Version   :   Online Linux Manual Page - Fedora.40 - march=x86-64 - mtune=generic - 25.03.22
Online Linux Manual Page   :   Library   :   lib_c - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Online Linux Manual Page   :   Library   :   lib_m - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Data Base   :   Version   :   Online Linux Manual Page Database - 24.04.13 - march=x86-64 - mtune=generic - fedora-38
Data Base   :   Library   :   lib_c - 23.02.07 - march=x86-64 - mtune=generic - fedora.36


Very long time ago, I have the best tutor, Wenzel Svojanovsky. If someone knows the email address of Wenzel Svojanovsky, please send an email to johanesgumabo@gmail.com.
Help me, linux0001.com will expire on July 16, 2025. I have no money to renew it. View detail

If error, please print screen and send to johanes_gumabo@yahoo.co.id
Under development. Support me via PayPal.

ERROR : Need New Coding :         (parse_manual_page_|254|Tk::Animation.3pm|36/37|el══─{─══.|.el══─{─══. ds -- \|\(em\| )         (htmlprn|160|Tk::Animation.3pm|36/37|.el══─{─══. ds --  —  |.el══─{─══. ds -- \|\(em\| )         (parse_manual_page_|254|Tk::Animation.3pm|43|br══─}─══|'br══─}─══ )         (htmlprn|160|Tk::Animation.3pm|43|'br══─}─══ |'br══─}─══ )