|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2007-10-17 22:02 UTC] johanp at aditus dot nu
[2007-10-18 08:45 UTC] pajoye@php.net
[2007-10-20 09:35 UTC] johanp at aditus dot nu
[2007-10-20 10:38 UTC] scottmac@php.net
[2007-10-20 15:31 UTC] pajoye@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Oct 27 18:00:01 2025 UTC |
Description: ------------ In PHP 4.4.7 imagefilledarc() has a defect filling a full circle when the start angle is not =0 Reproduce code: --------------- <?php $im = imagecreatetruecolor (600, 400); $black = imagecolorallocate ($im, 0, 0, 0); $white = imagecolorallocate ($im, 255, 255, 255); // The following code should show two white circles. But // only the left arc is displayed // 360-arc working. (Start angle=0, End Angle=360) imagefilledarc($im,200,200,200,200,0,360,$white,IMG_ARC_PIE); // 360-arc __NOT__ working. (Start angle=270, End Angle=630) imagefilledarc($im,400,200,200,200,270,630,$white,IMG_ARC_PIE); header ("Content-type: image/png"); imagepng ($im); ?> Expected result: ---------------- Two white circles on a black canvas Actual result: -------------- One white circle on a black canvas