note 103812 deleted from function.imagearc by danbrown

From: Date: Wed, 04 May 2011 23:55:09 +0000
Subject: note 103812 deleted from function.imagearc by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-179434@lists.php.net to get a copy of this message
Note Submitter: mbrodin ---- 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; } ?>

« previous php.notes (#179434) next »