KianTern has asked for the wisdom of the Perl Monks concerning the following question:
This code supposed to draw an Anti Aliased line but it doesn't Anti Alias. I'm using perl 5.10 on Ubuntu 8.10.use strict; use GD; my $gd = GD::Image->new(400,400); my $black = $gd->colorAllocate(0,0,0); my $white = $gd->colorAllocate(255,255,255); $gd->filledRectangle(0,0,399,399,$white); $gd->setAntiAliased($black); $gd->line(0,0,399,399,gdAntiAliased); open(IMG,">","out.png"); binmode IMG; print IMG $gd->png;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: GD Anti Aliasing
by BrowserUk (Patriarch) on Jan 15, 2009 at 10:35 UTC | |
|
Re: GD Anti Aliasing
by syphilis (Archbishop) on Jan 15, 2009 at 10:35 UTC | |
by BrowserUk (Patriarch) on Jan 15, 2009 at 10:40 UTC | |
by syphilis (Archbishop) on Jan 15, 2009 at 10:48 UTC | |
by BrowserUk (Patriarch) on Jan 15, 2009 at 10:51 UTC | |
by syphilis (Archbishop) on Jan 15, 2009 at 10:56 UTC | |
|
Re: GD Anti Aliasing
by spx2 (Deacon) on Apr 03, 2010 at 21:28 UTC | |
by Anonymous Monk on Apr 03, 2010 at 22:38 UTC |