ID:               34357
 Updated by:       [EMAIL PROTECTED]
 Reported By:      zakay at danial dot se
 Status:           Closed
 Bug Type:         GD related
 Operating System: Gentoo Linux, OS X, Windows XP
 PHP Version:      5.0.4
 Assigned To:      pajoye
 New Comment:

Good, it is not possible to switch to a alpha based anti aliasing now
in GD, for many historical and boring reasons (like bc).

--Pierre


Previous Comments:
------------------------------------------------------------------------

[2005-09-03 19:11:26] zakay at danial dot se

Ok..
I made my own patches to the sources.. and now I have it 
working.. My way..

Thanx anyway..

------------------------------------------------------------------------

[2005-09-03 16:56:03] [EMAIL PROTECTED]

Reset the original category....

------------------------------------------------------------------------

[2005-09-03 15:11:32] [EMAIL PROTECTED]

Little explanation.

Antialiasing here works with in direct rendering mode, using some
blending operations.

What you did in photoshop is to set the alpha channel. The channel
being kept in the final image.

Both being two completelly different things and it is actually  not
possible to create the later in GD.

See some introduction to graphics programming (GEMs, Black book, ...)
to get more informations about this topic.

--Pierre

------------------------------------------------------------------------

[2005-09-03 14:51:29] zakay at danial dot se

Ok, I made a picture in photoshop, a png with white lines 
antialiased.. and a brush thats blury.
Please notice that it doesn't matter what the background 
color is. .I use the same picture on three different 
background colors in the html.

http://www.zacay.se/image/test2/

Can you make lines in PHP-GD that works the same way?

Its seems no, cause actually you haven't thought about this 
yet.

I don't want it to know what background color I use in my 
HTML, I want it to think that the image I work on is 
transparent and the antialiased lines work on whatever 
background I choose to.

Please see my second link: http://www.zacay.se/image/test2/

------------------------------------------------------------------------

[2005-09-03 14:35:09] [EMAIL PROTECTED]

Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to report
a bug at http://bugs.php.net/how-to-report.php

Please read my answer and how works antiaalising in general.

You have a _transparent color, and this color is white. Your draw a
white line, what do you expect? Or should I automagically know the
color used when you display the images? (in your case the grey of your
page).

Or what do you consider as correct blending method in this case?

--Pierre

------------------------------------------------------------------------

The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
    http://bugs.php.net/34357

-- 
Edit this bug report at http://bugs.php.net/?id=34357&edit=1

Reply via email to