note 121035 added to function.imageline
| From: | teixeiradotcmoatgmail.com | Date: | Sat, 29 Apr 2017 23:08:24 +0000 |
| Subject: | note 121035 added to function.imageline | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-209041@lists.php.net to get a copy of this message | ||
If you draw on a canvas, using js ctx.lineJoin = "round"; and then try to do the same on a
GD $img the result will not be the same.
Here is a simple code to draw a line similar to one made using lineJoin round.
$w=5; //set your line thickness;
imagesetthickness($img, $w);
imageline($img, $x1, $y1, $x2, $y2, $color);
imagesetthickness($img, 1);
imagefilledellipse ( $img , $x2 , $y2 , $w ,$w, $color);
----
Server IP: 72.52.91.14
Probable Submitter: 179.99.252.49
----
Manual Page -- http://php.net/manual/en/function.imageline.php
Edit -- https://master.php.net/note/edit/121035
Del: integrated -- https://master.php.net/note/delete/121035/integrated
Del: useless -- https://master.php.net/note/delete/121035/useless
Del: bad code -- https://master.php.net/note/delete/121035/bad+code
Del: spam -- https://master.php.net/note/delete/121035/spam
Del: non-english -- https://master.php.net/note/delete/121035/non-english
Del: in docs -- https://master.php.net/note/delete/121035/in+docs
Del: other reasons-- https://master.php.net/note/delete/121035
Reject -- https://master.php.net/note/reject/121035
Search -- https://master.php.net/manage/user-notes.php