1Prima::Drawable::MetafiUlsee(r3)Contributed Perl DocumenPtraitmiao:n:Drawable::Metafile(3)
2
3
4
6 Prima::Drawable::Metafile - graphic primitive recorder
7
9 Metafiles can record graphic primitives and replay them later on
10 another canvas.
11
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
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
33 Dmitry Karasik, <dmitry@karasik.eu.org>.
34
36 Prima, Prima::Buttons, examples/buttons.pl
37
38
39
40perl v5.34.1 2022-04-20 Prima::Drawable::Metafile(3)