Subject: | AntiAliasing not working |
AntiAliasing does not seem to work...
Attached sample code showing that GD is not smoothing lines:
Thanks
use strict;
use GD;
my $im = new GD::Image(200,200);
my $white = $im->colorAllocate(255,255,255);
my $black = $im->colorAllocate(0,0,0);
$im->setThickness(10);
$im->setAntiAliased($black);
$im->line(10,10,180,10,gdAntiAliased);
$im->line(10,25,180,50,gdAntiAliased);
$im->arc(100,120,100,100,0,360,gdAntiAliased);
my $file ='anti-test.png';
open( PNG, ">$file") || die "Can't open $file\n";
binmode PNG;
print PNG $im->png;
close PNG;