note 48023 deleted from function.imagefilledarc by betz
| From: | betz@php.net | Date: | Thu, 09 Dec 2004 11:45:36 +0000 |
| Subject: | note 48023 deleted from function.imagefilledarc by betz | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-81579@lists.php.net to get a copy of this message | ||
Note Submitter: andreoli dot carlo at libero dot it
----
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
----
Reason: useless note