Click to See Complete Forum and Search --> : antialias- doing my head in!!


mitya
10-30-2003, 01:29 PM
Can anyone tell me how to get the antialias function to work?? The manual, in its ambiguity, says nothing of it. It doesn't even specify how you turn it on, all it says is:

imageantialias ( int im, bool on)

...well what on earth is 'on'? True? 1? "on"?

Either way, it won't work, despite using PHP 4.3 and GD 2.1. However, I don't get a 'call to undefined function' error message. Can anyone shed any light on this?

Thanks.

PunkSktBrdr01
10-30-2003, 06:42 PM
The bool on value should be 1 for on, 0 for off.

mitya
10-30-2003, 07:12 PM
Thanks for that.

I did eventually crack it... again, the manual really should point this out for us non-geniuses.

You can't use antialias unless you're working in true colour. Makes sense when you realise, i.e. of course you can't antialias if you don't have the right colours in the palette, but it had me stumped for a while :o)

Cheers.