Re: [GD-DEVEL] trasparent image width antialiasing

From: Date: Thu, 01 Feb 2007 12:05:41 +0000
Subject: Re: [GD-DEVEL] trasparent image width antialiasing
References: 1 2 3 4  Groups: php.gd.devel 
Request: Send a blank email to php-gd-devel+get-57@lists.php.net to get a copy of this message
----- Original Message ----- From: "Pierre" <pierre.php@gmail.com> To: "yagyog" <yagyog@tiscali.it> Cc: <gd-devel@lists.php.net> Sent: Thursday, February 01, 2007 12:35 PM Subject: Re: [GD-DEVEL] trasparent image width antialiasing
Hi, On 1/30/07, yagyog <yagyog@tiscali.it> wrote:
----- Original Message ----- From: "Pierre" <pierre.php@gmail.com> To: "yagyog" <yagyog@tiscali.it> Cc: <gd-devel@lists.php.net> Sent: Tuesday, January 30, 2007 3:48 PM Subject: Re: [GD-DEVEL] trasparent image width antialiasing
On 1/30/07, yagyog <yagyog@tiscali.it> wrote:
I have a problem, Excused but I do not speak English I have in input one image png with antialising with uniform solid background I would want 1) to eliminate the background 2) recreate the channel alpha in order not to lose the antialising on the text It is possible? you can give me of the information ? I try this code but not work: // //load a, load b and create test // a = myLoadPng("a.png"); b = myLoadPng("b.png");
Can you give us a link to the images a.png and b.png please? --Pierre
Yes the color is changed but , it does not change nothing http://www.yag.altervista.org/varius/a.png http://www.yag.altervista.org/varius/b.png my result http://www.yag.altervista.org/varius/test.png
You have to use the alpha component in your image. So the blending will be done when you copy a or b over test
. But if the original images do not contain any alpha components Exact! :(
, the anti aliasing being
done against a given color (green and yellow in your case), you will have a visible aliasing. Excuse I have not understood well
you could makes to understand me better. even with of the code

« previous php.gd.devel (#57) next »