GD imagefilledarc not working, but php version apparently recent

GD imagefilledarc not working, but php version apparently recent

am 23.04.2008 20:05:09 von cwdjrxyz

Using GD imagefilledarc to fill in an arc drawn with php does not
work, but imagefilledellipse works fine. The imagefilledarc is
supposed to have worked since php version 4.06. I have version 4.3.11,
so the version should be recent enough. If you will click on
http://www.cwdjr.net/php/phpInfo.php , you will get a dump of php info
from my host's server using phpinfo(). This confirms the php version.
GD info is given, and the GD installed is supposed to be bundled
compatible to GD version 2.0.28. Does anyone have any idea why
imagefilledarc apparently is not supported?

Re: GD imagefilledarc not working, but php version apparently recent

am 24.04.2008 08:46:53 von cwdjrxyz

On Apr 23, 1:05 pm, cwdjrxyz wrote:
> Using GD imagefilledarc to fill in an arc drawn with php does not
> work, but imagefilledellipse works fine. The imagefilledarc is
> supposed to have worked since php version 4.06. I have version 4.3.11,
> so the version should be recent enough. If you will click onhttp://www.cwdjr.net/php/phpInfo.php, you will get a dump of php info
> from my host's server using phpinfo(). This confirms the php version.
> GD info is given, and the GD installed is supposed to be bundled
> compatible to GD version 2.0.28. Does anyone have any idea why
> imagefilledarc apparently is not supported?

After wasting many hours, I have found the problem. The reference I
was using indicated that the same parameters are used for
imagefilledarc as for imagearc. That is true, except a final parameter
must be added to select from 4 possible types of fill. I finally knew
something was wrong with the code when I found a parameter was missing
using some tests. For instance a final parameter of img_arc_pie gives
a completely filled wedge shape with a curved edge, or piece of pie.
For more details concerning this final parameter see
http://www.hudzilla.org/phpbook/read.php/11_2_4 .

I thought I should post a few details in case someone else used the
same reference I did that did not mention the final parameter required
for image filled arc. If you do not include this parameter, there is
no default one. The code just fails and gives no image. Thanks to
anyone who examined my post.