home *** CD-ROM | disk | FTP | other *** search
-
- <HTML>
- <HEAD>
- <TITLE>Tk::Animation - Display sequence of Tk::Photo images</TITLE>
- <LINK REL="stylesheet" HREF="../../../Active.css" TYPE="text/css">
- <LINK REV="made" HREF="mailto:">
- </HEAD>
-
- <BODY>
- <TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0 WIDTH=100%>
- <TR><TD CLASS=block VALIGN=MIDDLE WIDTH=100% BGCOLOR="#cccccc">
- <STRONG><P CLASS=block> Tk::Animation - Display sequence of Tk::Photo images</P></STRONG>
- </TD></TR>
- </TABLE>
-
- <A NAME="__index__"></A>
- <!-- INDEX BEGIN -->
-
- <UL>
-
- <LI><A HREF="#name">NAME</A></LI><LI><A HREF="#supportedplatforms">SUPPORTED PLATFORMS</A></LI>
-
- <LI><A HREF="#synopsis">SYNOPSIS</A></LI>
- <LI><A HREF="#description">DESCRIPTION</A></LI>
- <LI><A HREF="#bugs">BUGS</A></LI>
- </UL>
- <!-- INDEX END -->
-
- <HR>
- <P>
- <H1><A NAME="name">NAME</A></H1>
- <P>Tk::Animation - Display sequence of Tk::Photo images</P>
- <P>
- <HR>
- <H1><A NAME="supportedplatforms">SUPPORTED PLATFORMS</A></H1>
- <UL>
- <LI>Linux</LI>
- <LI>Solaris</LI>
- <LI>Windows</LI>
- </UL>
- <HR>
- <H1><A NAME="synopsis">SYNOPSIS</A></H1>
- <PRE>
- use Tk::Animation
- my $img = $widget->Animation('-format' => 'gif', -file => 'somefile.gif');</PRE>
- <PRE>
- $img->start_animation($period);
- $img->stop_animation;</PRE>
- <PRE>
- $img->add_frames(@images);</PRE>
- <P>
- <HR>
- <H1><A NAME="description">DESCRIPTION</A></H1>
- <P>In the simple case when <CODE>Animation</CODE> is passed a GIF89 style GIF with
- multiple 'frames', it will build an internal array of <CODE>Photo</CODE> images.</P>
- <P><CODE>start_animation($period)</CODE> then initiates a <CODE>repeat</CODE> with specified <EM>$period</EM>
- to sequence through these images.</P>
- <P><CODE>stop_animation</CODE> cancels the <CODE>repeat</CODE> and resets the image to the first
- image in the sequence.</P>
- <P>The <CODE>add_frames</CODE> method adds images to the sequence. It is provided
- to allow animations to be constructed from separate images.
- All images must be <CODE>Photo</CODE>s and should all be the same size.</P>
- <P>
- <HR>
- <H1><A NAME="bugs">BUGS</A></H1>
- <P>The 'period' should probably be a property of the Animation object
- rather than specified at 'start' time. It may even be embedded
- in the GIF.</P>
- <TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0 WIDTH=100%>
- <TR><TD CLASS=block VALIGN=MIDDLE WIDTH=100% BGCOLOR="#cccccc">
- <STRONG><P CLASS=block> Tk::Animation - Display sequence of Tk::Photo images</P></STRONG>
- </TD></TR>
- </TABLE>
-
- </BODY>
-
- </HTML>
-