note 48023 added to function.imagefilledarc

From: Date: Thu, 09 Dec 2004 11:07:30 +0000
Subject: note 48023 added to function.imagefilledarc
Groups: php.notes 
Request: Send a blank email to php-notes+get-81576@lists.php.net to get a copy of this message
Maybe a bug So the definition indicates "start and end points are specified in degrees indicated by the s and e arguments"...look at this $image = imagecreate(400, 400); // allocate some solors $white=imagecolorallocate($image, 255, 255,255); $red=imagecolorallocate($image, 255, 0, 0); $blue=imagecolorallocate($image, 0, 0, 255); imagefilledarc($image, 200, 200, 200, 200, 315, 360, $blue, IMG_ARC_PIE); imagefilledarc($image, 200, 200, 200, 100, 315, 360, $red, IMG_ARC_PIE); header('Content-type: image/png'); imagepng($image); imagedestroy($image); it should create two arc...with the same angle.... but not... the blue arc is correctly designed but the red arc is designed like a a 200width x 200eighth and then resized to 200width x 100eight... that's not goooooood......or the documentation is wrong...or i'm wrong...please help me ---- Manual Page -- http://www.php.net/manual/en/function.imagefilledarc.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+48023 Delete -- http://master.php.net/manage/user-notes.php?action=delete+48023&report=yes Reason: bad code -- http://master.php.net/manage/user-notes.php?action=delete+48023&report=yes&reason=bad+code Reason: spam -- http://master.php.net/manage/user-notes.php?action=delete+48023&report=yes&reason=spam Reason: useless example -- http://master.php.net/manage/user-notes.php?action=delete+48023&report=yes&reason=useless+example Reason: contains commercial links -- http://master.php.net/manage/user-notes.php?action=delete+48023&report=yes&reason=contains+commercial+links Reason: useless note -- http://master.php.net/manage/user-notes.php?action=delete+48023&report=yes&reason=useless+note Reject -- http://master.php.net/manage/user-notes.php?action=reject+48023&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#81576) next »