Skip Menu |

This queue is for tickets about the GD CPAN distribution.

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

People
Owner: LDS [...] cpan.org
Requestors: jpalmer [...] linz.govt.nz
Cc:
AdminCc:

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



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;
Either allocate enough colors so that antialiasing can do its thing, or convert to a truecolor image and fill with a background color.