|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2017-01-26 11:38 UTC] krakjoe@php.net
-Package: *Graphics related
+Package: GD related
-Assigned To:
+Assigned To: cmb
[2017-01-26 11:43 UTC] cmb@php.net
-Status: Assigned
+Status: Duplicate
[2017-01-26 11:43 UTC] cmb@php.net
[2018-01-20 17:04 UTC] scripts at bauser-enterprises dot com
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Oct 27 12:00:02 2025 UTC |
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); ?>