note 91866 modified in function.imagesetthickness by danbrown
| From: | danbrown@php.net | Date: | Tue, 30 Jun 2009 13:14:27 +0000 |
| Subject: | note 91866 modified in function.imagesetthickness by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-157696@lists.php.net to get a copy of this message | ||
An easier to manage thickness is, before to draw in the ellipse to play with 2 ellipse with
different color :
<?php
imagefilledellipse ($this->image,60,42,57,57,$drawColor);
imagefilledellipse ($this->image,60,42,45,45,$backColor);
?>
The first line draw a filled ellipse with the wanted color, and the 2nd one, draw an ellipse with
the background color from the same center, but is smaller.
The drawback of this method is that you erase everything in the middle of the ellipse.
--was--
An easier to manage thickness is, before to draw in the ellipse to play with 2 ellipse with
different color :
imagefilledellipse ($this->image,60,42,57,57,$drawColor);
imagefilledellipse ($this->image,60,42,45,45,$backColor);
The first line draw a filled ellipse with the wanted color, and the 2nd one, draw an ellipse with
the background color from the same center, but is smaller.
The drawback of this method is that you erase everything in the middle of the ellipse.
http://php.net/manual/en/function.imagesetthickness.php