Skip Menu |

This queue is for tickets about the GD CPAN distribution.

Report information
The Basics
Id: 23818
Status: resolved
Priority: 0/
Queue: GD

People
Owner: Nobody in particular
Requestors: G.Clitheroe [...] gns.cri.nz
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



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
You need to allocate the intermediate shades first, like any color-intensive drawing process on palette images. I have added this hint to the docs.