ID: 38517 Updated by: [EMAIL PROTECTED] Reported By: wkpark at kldp dot org -Status: Open +Status: Assigned Bug Type: GD related Operating System: Linux PHP Version: 5.1.5 -Assigned To: +Assigned To: pajoye
Previous Comments: ------------------------------------------------------------------------ [2006-08-20 09:08:46] wkpark at kldp dot org and this is my first try to fix this problem. this patch use Bresenham algorithm and some simple trick to make integer based imagefilledarc() http://chem.skku.ac.kr/~wkpark/linux/patch/php5.x-gd-bresenham3.patch http://kldp.org/files/gd_try1.png ------------------------------------------------------------------------ [2006-08-20 08:46:48] wkpark at kldp dot org Description: ------------ there are already similar imagefilledellipse() bug #22103. but it is not corrected with the imagefilledarc(). the reason why this results are obtained is same as described in #22103. Reproduce code: --------------- <?php $im = imagecreatetruecolor(401, 802); imagesavealpha($im, true); imagealphablending($im, false); imagefilledrectangle($im, 0, 0, 400, 801, 0x7fffffff); imagealphablending($im, true); imagefilledarc($im, 200, 200, 400, 400, 30, 270, 0xff0000, 0); imagefilledarc($im, 200, 601, 400, 400, 30, 270, 0x40ff0000, 0); imagepng($im, 'test.png'); echo '<img src="test.png" />'; ?> and the result http://kldp.org/files/test_0.png ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=38517&edit=1