Prima::Drawable::Metafile - graphic primitive recorder
Metafiles can record graphic primitives and replay them later on another canvas.
my $metafile = Prima::Drawable::Metafile->new( size => [30, 30] ); $metafile->begin_paint; $metafile->rectangle(10,10,20,20); $metafile->end_paint; $metafile->execute( $another_drawable, 100, 100 );
When called without parameters, clears the content before proceeding. Otherwise same as Drawable.clear.
Drawable.clear
Draws the content on a CANVAS with X,Y offset
Sets metafile extensions; however the content is not clipped by it.
Dmitry Karasik, <dmitry@karasik.eu.org>.
Prima, Prima::Buttons, examples/buttons.pl
To install Prima, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Prima
CPAN shell
perl -MCPAN -e shell install Prima
For more information on module installation, please visit the detailed CPAN module installation guide.