NAME
Treemap::Output::Imager
SYNOPSIS
#!/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" );
DESCRIPTION
Implements Treemap::Output methods which allows Treemap to call appropriate Imager methods for rendering a raster image of a Treemap.
EXPORT
None by default.
METHODS
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.
SEE ALSO
Treemap, Treemap::Output, Imager
AUTHORS
Simon Ditner <simon@uc.org>, and Eric Maki <eric@uc.org>
CREDITS
Imager is a very nice image manipulation library written by Arnar M. Hrafnkelsson (addi@imager.perl.org) and Tony Cook (tony@imager.perl.org).
LICENSE
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.