Prima::Drawable::Subcanvas - paint a hierarchy of widgets to any drawable
Needed for painting a screenshot on an image, printer, etc. When loaded, it aytomatically adds two methods to any Drawable: paint_with_widgets and screenshot.
use Prima qw(Application Button); my $w = Prima::MainWindow-> create; $w->insert( 'Button' ); $w->screenshot->save('a.bmp');
Given a $canvas is in paint mode, traverses all widgets as they are seen on screen, and paints them on the canvas with given $x,$y offsets.
$canvas
$x,$y
Syntax sugar over the paint_with_widgets. Creates an image with the $self's, size, and calls paint_with_widgets with it. Returns the screen shot.
$self
paint_with_widgets
David Mertens
examples/grip.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.