Edit report at https://bugs.php.net/bug.php?id=74001&edit=1
ID: 74001
Updated by: cmb@php.net
Reported by: andi at z1-web dot de
Summary: imagefilledarc
-Status: Assigned
+Status: Duplicate
Type: Bug
Package: GD related
Operating System: Windows 10 / XAMPP
PHP Version: 7.0.15
Assigned To: cmb
Block user comment: N
Private report: N
New Comment:
Duplicate of bug #73614.
Previous Comments:
------------------------------------------------------------------------
[2017-01-26 11:14:38] andi at z1-web dot de
Description:
------------
The pie chart is displayed incorrectly with angle 90 degrees:
(big gaps between the cake pieces)
imagefilledarc($img, 155, 63, 150, 75, 1, 90, $blue, IMG_ARC_PIE);
imagefilledarc($img, 155, 63, 150, 75, 90, 360, $green, IMG_ARC_PIE);
With other angle like 120 degrees there are no problems:
imagefilledarc($img, 155, 63, 150, 75, 1, 120, $blue, IMG_ARC_PIE);
imagefilledarc($img, 155, 63, 150, 75, 120, 360, $green, IMG_ARC_PIE);
Test script:
---------------
<?php
$img = imagecreatetruecolor(440, 123);
$blue = imagecolorallocate($img, 80, 108, 255);
$green = imagecolorallocate($img, 48, 217, 26);
imagefill($img, 0, 0, $white);
imagefilledarc($img, 155, 63, 150, 75, 1, 90, $blue, IMG_ARC_PIE);
imagefilledarc($img, 155, 63, 150, 75, 90, 360, $green, IMG_ARC_PIE);
header('Content-type: image/png');
imagepng($img);
imagedestroy($img);
?>
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=74001&edit=1