Re: [GD-DEVEL] trasparent image width antialiasing
| From: | yagyog | Date: | Thu, 01 Feb 2007 13:23:23 +0000 |
| Subject: | Re: [GD-DEVEL] trasparent image width antialiasing | ||
| References: | 1 2 3 4 5 6 7 8 | Groups: | php.gd.devel |
| Request: | Send a blank email to php-gd-devel+get-61@lists.php.net to get a copy of this message | ||
"Pierre" <pierre.php@gmail.com> ha scritto nel messaggio
news:fe05d1540702010435q5a26ad27m457a773fcdc1269a@mail.gmail.com...
On 2/1/07, yagyog <yagyog@tiscali.it> wrote:ok I have seen. I have created two images with the channel alpha ba.png bb.png and used the same code here the result http://www.yag.altervista.org/varius/1/ba.png http://www.yag.altervista.org/varius/1/bb.png my result http://www.yag.altervista.org/varius/1/test.png----- Original Message ----- From: "Pierre" <pierre.php@gmail.com> To: "yagyog" <yagyog@tiscali.it> Cc: <gd-devel@lists.php.net> Sent: Thursday, February 01, 2007 1:17 PM Subject: Re: [GD-DEVEL] trasparent image width antialiasingOn 2/1/07, yagyog <yagyog@tiscali.it> wrote:There is no way to achieve what you want without using the alpha component in your images. Here is an example image: http://blog.thepimp.net/misc/test_text_aa_alpha.png Load it in gimp/gqview, you will see the alpha values in the edges.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: Thursday, February 01, 2007 12:35 PM Subject: Re: [GD-DEVEL] trasparent image width antialiasingYou have to use the alpha component in your image. So the blending will be done when you copy a or b over testOn 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 antialiasingCan you give us a link to the images a.png and b.png please? --PierreI 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");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. But if the original images do not contain any alpha componentsdone against a given color (green and yellow in your case), you will have a visible aliasing.Exact! :( , the anti aliasing beingExcuse I have not understood well you could makes to understand me better. even with of the codetherefore I cannot realize what I said with one image without channel alpha? solution does not exist one practically And if I have one image with the channel alpha?Please load http://blog.thepimp.net/misc/test_text_aa_alpha.png in your image editor and read the alpha values of the text borders. You will see what I mean.