Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:18762 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 82897 invoked by uid 1010); 10 Sep 2005 16:34:39 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 82881 invoked from network); 10 Sep 2005 16:34:39 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 10 Sep 2005 16:34:39 -0000 X-Host-Fingerprint: 64.26.176.17 ottawa-hs-64-26-176-17.s-ip.magma.ca Linux 2.4 (Google crawlbot) Received: from ([64.26.176.17:34477] helo=box2.fiddy8.com) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id F9/9B-17383-F1B03234 for ; Sat, 10 Sep 2005 12:34:39 -0400 Received: from mrobinson (mrobinson [192.168.1.3]) by box2.fiddy8.com (8.12.3/8.12.3/Debian-7.1) with ESMTP id j8AGYVqe024681; Sat, 10 Sep 2005 12:34:32 -0400 Message-ID: <200509101634.j8AGYVqe024681@box2.fiddy8.com> To: "'Greg Trounson'" , Date: Sat, 10 Sep 2005 12:34:32 -0400 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook, Build 11.0.6353 In-Reply-To: <432271EE.7030509@es.co.nz> Thread-Index: AcW1ykelrYvhDUjpQmOMzZDZYyFGjwAWjqqQ X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2670 Subject: RE: [PHP-DEV] ImageAntialias From: mike@fiddy8.com ("Mike Robinson") References: <432271EE.7030509@es.co.nz> Greg Trounson wrote: > Actually I propose a new method for antialiasing: > > bool imageantialias ( resource im, bool on, int MODE ) > > where MODE is one of: > > AA_TRADITIONAL - Perform antialiasing the same way it's done > now - that is to use a different antialiasing function for > each primitive, most of which haven't yet been implemented. > > AA_SCALE - Draw the image to an internal buffer at 2x the > requested size, using regular non-antialiased primitives, and > downscale the result to the requested size with bilinear > filtering. This produces nice antialiased images with very > little duplication of code across primitives. Line thickness > may need to be doubled to give the right effect. > > AA_TEXT - Draw/downsample the image as above, but omit text > objects until after the image has been downsampled. This > allows for clearer but non-antialiased text. Ugh. Painful short-term remedies... I understand the frustration, but given the excellent progress made lately on GD, both by Boutell-folk and the internal GD maintainer(s), IMHO I think it'd be better to wait until GD handles anti-aliasing properly. Best, Mike Robinson