note 108514 added to function.imagesetthickness
| From: | david dot bruchmann at gmail dot com | Date: | Thu, 03 May 2012 02:34:11 +0000 |
| Subject: | note 108514 added to function.imagesetthickness | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-187450@lists.php.net to get a copy of this message | ||
Instead of the calculation of "raffi dot semerciyan at gmail dot com" you can simply use
two arcs with 180°, so the drawing should be faster which may be important when you've many
calculations:
// We don't use imageellipse because the imagesetthickness function has
// no effect. So the better workaround is to use imagearc.
imagearc($image, $ellipseX, $ellipseY, $ellipseWidth, $ellipseHeight, 0, 180, $color);
imagearc($image, $ellipseX, $ellipseY, $ellipseWidth, $ellipseHeight, 180, 360, $color);
imagefill works for the inner area of this ellipse without flooding the outer area.
----
Server IP: 212.124.37.9
Probable Submitter: 92.230.230.9
----
Manual Page -- http://www.php.net/manual/en/function.imagesetthickness.php
Edit -- https://master.php.net/note/edit/108514
Del: integrated -- https://master.php.net/note/delete/108514/integrated
Del: useless -- https://master.php.net/note/delete/108514/useless
Del: bad code -- https://master.php.net/note/delete/108514/bad+code
Del: spam -- https://master.php.net/note/delete/108514/spam
Del: non-english -- https://master.php.net/note/delete/108514/non-english
Del: in docs -- https://master.php.net/note/delete/108514/in+docs
Del: other reasons-- https://master.php.net/note/delete/108514
Reject -- https://master.php.net/note/reject/108514
Search -- https://master.php.net/manage/user-notes.php