Prima::Drawable::Metafile - graphics recorder
Metafiles can record graphic primitives and replay them later on another canvas
my $metafile = Prima::Drawable::Metafile->new( size => [30, 30] );
$metafile->execute( $another_drawable, 100, 100 );
$SUB will be called when the metafile is executed, with the first two parameters the metafile and the target canvas, and @ARGS thereafter.
When called without parameters, clears the content before proceeding. Otherwise same as Drawable.clear.
Draws the content on the CANVAS with X,Y offset
Sets the metafile extensions; the content is not clipped by it.
Dmitry Karasik, <email@example.com>.
Prima, Prima::Buttons, examples/buttons.pl
To install Prima, copy and paste the appropriate command in to your terminal.
perl -MCPAN -e shell
For more information on module installation, please visit the detailed CPAN module installation guide.