Apache-GDGraph
view release on metacpan or search on metacpan
lib/Apache/GD/Graph.pm view on Meta::CPAN
gdTinyFont => gdTinyFont,
gdGiantFont => gdGiantFont,
gdStyled => gdStyled,
gdBrushed => gdBrushed,
gdStyledBrushed => gdStyledBrushed,
gdTransparent => gdTransparent
};
# Sub prototypes:
sub init();
sub handler ($);
sub parse ($;$);
sub arrayCheck ($$);
sub error ($);
sub makeDir ($);
sub parseElement ($;$);
sub findFont ($);
sub resolveColor ($$);
# Package variables.
my $first_request = TRUE;
my ($r, $cache_size, $image_cache, $document_root, @cleanup_files);
# Subs:
# init()
#
# Called only once on the first request received. May be called once per child
# in Apache.
sub init() {
# Set the GD::Text fontpath.
GD::Text->font_path ($r->dir_config('TTFFontPath') || TTF_FONT_PATH);
$cache_size = $r->dir_config('CacheSize');
$cache_size = CACHE_SIZE if $cache_size <= 0;
$image_cache = new File::Cache ({
namespace => 'Images',
max_size => $cache_size,
( run in 0.556 second using v1.01-cache-2.11-cpan-65fba6d93b7 )