Runops::Movie::TM::Output::Imager - (fork of Treemap)
#!/usr/bin/perl -w use Treemap; use Treemap::Input::Dir; use Treemap::Output::Imager; my $dir = Treemap::Input::Dir->new(); my $imager = Treemap::Output::Imager->new( WIDTH=>1024, HEIGHT=>768, FONT_FILE=>"ImUgly.ttf" ); $dir->load( "/home" ); my $treemap = new Treemap( INPUT=>$dir, OUTPUT=>$imager ); $treemap->map(); $imager->save( "test.png" );
Implements Treemap::Output methods which allows Treemap to call appropriate Imager methods for rendering a raster image of a Treemap.
None by default.
new Creates a new object. The following attributes may be set:
Attribute Default --------- ------- WIDTH 400 HEIGHT 300 PADDING 5 SPACING 5 BORDER_COLOUR #000000 FONT_COLOUR #000000 MIN_FONT_SIZE 5 FONT_FILE ../ImUgly.ttf TEXT_DEBUG 0 DEBUG 0
save Write a Treemap raster image to a file.
Supports all formats supported by local installation of Imager. Format of file is controlled by file extension.
Treemap, Treemap::Output, Imager
Simon Ditner <simon@uc.org>, and Eric Maki <eric@uc.org>
Imager is a very nice image manipulation library written by Arnar M. Hrafnkelsson (addi@imager.perl.org) and Tony Cook (tony@imager.perl.org).
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Runops::Movie, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Runops::Movie
CPAN shell
perl -MCPAN -e shell install Runops::Movie
For more information on module installation, please visit the detailed CPAN module installation guide.