Graphics::Primitive::Driver::CairoCairo backend for Graphics::Primitive | |
Download |
Graphics::Primitive::Driver::Cairo Ranking & Summary
Advertisement
- License:
- Perl Artistic License
- Price:
- FREE
- Publisher Name:
- Cory Watson
- Publisher web site:
- http://search.cpan.org/~gphat/
Graphics::Primitive::Driver::Cairo Tags
Graphics::Primitive::Driver::Cairo Description
Cairo backend for Graphics::Primitive Graphics::Primitive::Driver::Cairo is a Perl module that draws Graphics::Primitive objects using Cairo.SYNOPSIS use Graphics::Primitive::Component; use Graphics::Primitive::Driver::Cairo; my $driver = Graphics::Primitive::Driver::Cairo->new; my $container = Graphics::Primitive::Container->new( width => $form->sheet_width, height => $form->sheet_height ); $container->border->width(1); $container->border->color($black); $container->padding( Graphics::Primitive::Insets->new(top => 5, bottom => 5, left => 5, right => 5) ); my $comp = Graphics::Primitive::Component->new; $comp->background_color($black); $container->add_component($comp, 'c'); my $lm = Layout::Manager::Compass->new; $lm->do_layout($container); my $driver = Graphics::Primitive::Driver::Cairo->new( format => 'PDF' ); $driver->draw($container); $driver->write('/Users/gphat/foo.pdf'); Requirements: · Perl
Graphics::Primitive::Driver::Cairo Related Software