The jpgraph graphing package written in PHP has such an anti-aliasing line 
draw routine written in PHP and it isn't actually that slow.  Check it out 


On Thu, 13 Dec 2001, Phil Driscoll wrote:

> On Wednesday 12 December 2001 8:35 am, Jan Maska wrote:
> > Hi,
> > I have the following problem:
> >
> > Using the database, I create a graph like __.------._.--._/\.__
> > In order to keep exact colors and prevent a JPEG detail distortion, I use
> > PNG format as output.
> > This has one disadvantage: all lines are rough and I don't know how to
> > antialias them.
> >
> > Can anyone help?
> I've never done this in PHP but clearly writing your own antialiased line 
> drawing algorithm in PHP will most likely produce something which runs too 
> slowly, so you need to do what you can in external libraries.
> I would draw the line into a bitmap which was exactly twice the size required 
> and then scale the image back to the correct size when you've done with 
> imagecopyresampled.
> Cheers

PHP General Mailing List (
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to