Subject: | AntiAliasing only works on true colour images - docs need updating? |
Date: | Wed, 6 Dec 2006 10:53:49 +1300 |
To: | bug-GD [...] rt.cpan.org |
From: | "Geoff Clitheroe" <G.Clitheroe [...] gns.cri.nz> |
The only way to get anitAliasing to work seems to be to use a true colour image
and to fill the background with a colour:
...
$self->{map} = GD::Image->new($self->{width}, $self->{height}, 1);
...
my $backGround = $self->{map}->colorAllocate(255,255,255);
$self->{map}->filledRectangle(0,0, $self->width(), $self->height(),
$backGround);
And then antiAliasing seems to work.
-Geoff