15 Dec 2016 03:52:24 UTC
- Distribution: Graphics-Primitive-Driver-GD
- Module version: 0.03
- Source (raw)
- Browse (raw)
- How to Contribute
- Testers (326 / 0 / 0)
- KwaliteeBus factor: 0
- 75.00% Coverage
- License: perl_5
- Activity24 month
- Download (23.53KB)
- MetaCPAN Explorer
- Subscribe to distribution
- This version
- Latest versionGPHAT Cory G Watsonand 1 contributors
- Cory G Watson, C<< <gphat at cpan.org> >>
Graphics::Primitive::Driver::GD - GD driver for Graphics::Primitive
use Graphics::Primitive::Component; use Graphics::Primitive::Driver::GD; 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::GD->new; $driver->draw($container); $driver->write('/Users/gphat/foo.png');
This module is in it's early stages and does not work properly. It will be improved shortly.
Cory G Watson,
<gphat at cpan.org>
Copyright 2009 Cory G Watson.
This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.
See http://dev.perl.org/licenses/ for more information.
Module Install Instructions
To install Graphics::Primitive::Driver::GD, copy and paste the appropriate command in to your terminal.
perl -MCPAN -e shell install Graphics::Primitive::Driver::GD
For more information on module installation, please visit the detailed CPAN module installation guide.