Hi
I am trying to draw an image i using GD module of perl on linux.
I have installed GDmodule
lippng
Zlib
my code goes as follows
use strict;
use GD;
my $Im=new GD::Image(100,100);
my $white=$im->colorAllocate(255,255,255);
my $black=$im->colorAllocate(0,0,0);
my $red=$im->colorAllocate(255,0,0);
my $blue=$im->colorAllocate(0,0,255);
$im->transparent($white);
$im->interlaced('true');
$im->rectangle(0,0,99,99,$black);
$im->arc(50,50,95,75,0,360,$blue);
$im->fill(50,50,$red);
binmode STDOUT
print $im;
when I try to run this program at my console I am getting GD::Image=scalr(ox804b688);
I don't know where I went wrong.
Can anybody help me to fix it .
Thanks a lot
I am trying to draw an image i using GD module of perl on linux.
I have installed GDmodule
lippng
Zlib
my code goes as follows
use strict;
use GD;
my $Im=new GD::Image(100,100);
my $white=$im->colorAllocate(255,255,255);
my $black=$im->colorAllocate(0,0,0);
my $red=$im->colorAllocate(255,0,0);
my $blue=$im->colorAllocate(0,0,255);
$im->transparent($white);
$im->interlaced('true');
$im->rectangle(0,0,99,99,$black);
$im->arc(50,50,95,75,0,360,$blue);
$im->fill(50,50,$red);
binmode STDOUT
print $im;
when I try to run this program at my console I am getting GD::Image=scalr(ox804b688);
I don't know where I went wrong.
Can anybody help me to fix it .
Thanks a lot