note 103812 added to function.imagearc
| From: | mbrodin at osu1 dot php dot net | Date: | Wed, 04 May 2011 23:10:40 +0000 |
| Subject: | note 103812 added to function.imagearc | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-179431@lists.php.net to get a copy of this message | ||
I did some modification of the function "imagearcthick" from -anton dot vandeghinste at
telenet dot be-. Sometimes the pixels were totally wrong, but this mod fixes the problem and make
the border to be total colored without any wrong pixel.
<?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);
}
$tcolor = imagecolorallocate($image, 255,199,99);
imagearc($image, $x, $y, $w, $h, $s, $e, $color);
imagefilltoborder($image, $x,$y, $color, $color);
imagearc($image, $x, $y, $w - ($thick * 1.5), $h - ($thick * 1.5), $s, $e, $tcolor);
imagefilltoborder($image, $x,$y, $tcolor, $tcolor);
return true;
}
?>
----
Server IP: 69.147.83.197
Probable Submitter: 62.220.176.199
----
Manual Page -- http://www.php.net/manual/en/function.imagearc.php
Edit -- https://master.php.net/note/edit/103812
Del: integrated -- https://master.php.net/note/delete/103812/integrated
Del: useless -- https://master.php.net/note/delete/103812/useless
Del: bad code -- https://master.php.net/note/delete/103812/bad+code
Del: spam -- https://master.php.net/note/delete/103812/spam
Del: non-english -- https://master.php.net/note/delete/103812/non-english
Del: in docs -- https://master.php.net/note/delete/103812/in+docs
Del: other reasons-- https://master.php.net/note/delete/103812
Reject -- https://master.php.net/note/reject/103812
Search -- https://master.php.net/manage/user-notes.php