note 95097 added to function.imagearc
| From: | anton dot vandeghinste at telenet dot be | Date: | Sun, 13 Dec 2009 15:27:17 +0000 |
| Subject: | note 95097 added to function.imagearc | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-163905@lists.php.net to get a copy of this message | ||
I needed an arc with a thick border and i didn't like to use 359.9 as end angle so i made a
function that works pretty well:
<?php
function imagearcthick($image, $x, $y, $w, $h, $s, $e, $color, $thick = 1)
{
if($thick == 1)
{
return imagearc($image, $x, $y, $w, $h, $s, $e, $color);
}
for($i = 1;$i<($thick+1);$i++)
{
imagearc($image, $x, $y, $w-($i/5), $h-($i/5),$s,$e,$color);
imagearc($image, $x, $y, $w+($i/5), $h+($i/5), $s, $e, $color);
}
}
?>
----
Server IP: 217.71.118.186
Probable Submitter: 84.195.249.89
----
Manual Page -- http://www.php.net/manual/en/function.imagearc.php
Edit -- https://master.php.net/note/edit/95097
Del: integrated -- https://master.php.net/note/delete/95097/integrated
Del: useless -- https://master.php.net/note/delete/95097/useless
Del: bad code -- https://master.php.net/note/delete/95097/bad+code
Del: spam -- https://master.php.net/note/delete/95097/spam
Del: non-english -- https://master.php.net/note/delete/95097/non-english
Del: in docs -- https://master.php.net/note/delete/95097/in+docs
Del: other reasons-- https://master.php.net/note/delete/95097
Reject -- https://master.php.net/note/reject/95097
Search -- https://master.php.net/manage/user-notes.php