1Prima::Drawable::MetafiUlsee(r3)Contributed Perl DocumenPtraitmiao:n:Drawable::Metafile(3)
2
3
4

NAME

6       Prima::Drawable::Metafile - graphic primitive recorder
7

DESCRIPTION

9       Metafiles can record graphic primitives and replay them later on
10       another canvas.
11

SYNOPSIS

13         my $metafile = Prima::Drawable::Metafile->new( size => [30, 30] );
14         $metafile->begin_paint;
15         $metafile->rectangle(10,10,20,20);
16         $metafile->end_paint;
17
18         $metafile->execute( $another_drawable, 100, 100 );
19

API

21       clear
22           When called without parameters, clears the content before
23           proceeding.  Otherwise same as "Drawable.clear".
24
25       execute CANVAS,X,Y
26           Draws the content on a CANVAS with X,Y offset
27
28       size X,Y
29           Sets metafile extensions; however the content is not clipped by it.
30
31

AUTHOR

33       Dmitry Karasik, <dmitry@karasik.eu.org>.
34

SEE ALSO

36       Prima, Prima::Buttons, examples/buttons.pl
37
38
39
40perl v5.36.0                      2023-03-20      Prima::Drawable::Metafile(3)
Impressum