ID:               43547
 Updated by:       [EMAIL PROTECTED]
 Reported By:      stas at metalinfo dot ru
-Status:           Open
+Status:           Assigned
 Bug Type:         GD related
 Operating System: WinXP
 PHP Version:      5.2.5
-Assigned To:      
+Assigned To:      pajoye
 New Comment:

I can reproduce on all platforms. 

Which gd library do you use with your extension linux? Bundled or
external? If external, which version on which linux?

The bug seems to be in the polygon function, the clipping looks like
the cause.

What you are looking (as a "work 'round") may be:

imagefilledarc($im,$corRad, 399-$corRad, $corRad*2,$corRad*2, 90, 180,
$arcFillColor, IMG_ARC_PIE);

As the actual postion of the last line is 399, not 400. But the bug is
valid > assigned.


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

[2007-12-09 20:44:13] stas at metalinfo dot ru

Description:
------------
imagefilledarc has a defect filling on Win XP, Works fine on Linux
system

Reproduce code:
---------------
$im = imagecreatetruecolor (600, 400);

$corRad = 60;

$rectFillColor = imagecolorallocate ($im, 255, 255, 255); 
imagefilledrectangle($im, 0, 400-$corRad, $corRad, 600-$corRad,
$rectFillColor); 

$arcFillColor = imagecolorallocate ($im, 0, 0, 0);
imagecolortransparent($im, $arcFillColor);

imagefilledarc($im,$corRad,400-$corRad,$corRad*2,$corRad*2,90,180,$arcFillColor,IMG_ARC_PIE);

header ("Content-type: image/jpeg");
imagejpeg($im);

Expected result:
----------------
Rounded right bottom corner

Actual result:
--------------
Uploaded buggy result image is here http://ww9.ru/foo.jpg

Because of invalid fill ther is a black line on the right bottom corner


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


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

Reply via email to