note 48024 added to function.imagearc

From: Date: Thu, 09 Dec 2004 11:09:35 +0000
Subject: note 48024 added to function.imagearc
Groups: php.notes 
Request: Send a blank email to php-notes+get-81577@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); imagearc($image, 200, 200, 200, 200, 315, 360, $blue); imagearc($image, 200, 200, 200, 100, 315, 360, $red); 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.imagearc.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+48024 Delete -- http://master.php.net/manage/user-notes.php?action=delete+48024&report=yes Reason: bad code -- http://master.php.net/manage/user-notes.php?action=delete+48024&report=yes&reason=bad+code Reason: spam -- http://master.php.net/manage/user-notes.php?action=delete+48024&report=yes&reason=spam Reason: useless example -- http://master.php.net/manage/user-notes.php?action=delete+48024&report=yes&reason=useless+example Reason: contains commercial links -- http://master.php.net/manage/user-notes.php?action=delete+48024&report=yes&reason=contains+commercial+links Reason: useless note -- http://master.php.net/manage/user-notes.php?action=delete+48024&report=yes&reason=useless+note Reject -- http://master.php.net/manage/user-notes.php?action=reject+48024&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#81577) next »