GD::XYScale 1.2 review
DownloadGD::XYScale can draw a 2D X-Y scale and use it. SYNOPSIS use GD; use GD::XYScale; $image = GD::Image->new($width,$
|
|
GD::XYScale can draw a 2D X-Y scale and use it.
SYNOPSIS
use GD;
use GD::XYScale;
$image = GD::Image->new($width,$height);
$white = $image->colorAllocate(255,255,255);
$black = $image->colorAllocate(0,0,0);
$blue = $image->colorAllocate(0,0,255);
# continue using your GD image object.
$scale = GD::XYScale->new($image);
# put the origin at x=50, y=80 and zoom-out with .5
$scale->origin(50,80,.5);
$scale->draw(1.5,$black);
$scale->name('up',
'x scale',
'y scale',
$blue,
gdSmallFont,
'show_zoom',
$blue);
# draw some geomethric objects, curves,
# plot something... etc...
This module adds a 2D scale to your GD image. It needs a GD::Image object to work.
First versions were modifying GD::Image namespace and I then realized that this is not a good thing. In this version and future versions, the module will use it's own namespace, so check your codes if you tried this module before version 1.2
Requirements:
Perl
GD::XYScale 1.2 search tags