note 99260 added to function.imagesetstyle
| From: | php at imperium dot be | Date: | Fri, 06 Aug 2010 14:05:59 +0000 |
| Subject: | note 99260 added to function.imagesetstyle | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-171434@lists.php.net to get a copy of this message | ||
Be aware that styles are applied towards the width of the line instead of linear.
To convert a style to be used for thick lines you can use the function below:
/*
ImageStyleThicken(<aStyle>,<iThickness>) --> <aThickStyle>
<aStyle> is the style array for a thickness of 1 (see imagesetstyle()).
<iThickness> is the new thickness to apply (see imagesetthickness()).
<aThickStyle> is the style array suitable for the given thickness.
*/
function ImageStyleThicken($_1,$_2) {
$a = array();
foreach ($_1 as $x) {
$i = $_2;
do $a[] = $x; while (--$i>0); }
return $a; }
----
Server IP: 91.199.167.223
Probable Submitter: 87.209.122.250
----
Manual Page -- http://www.php.net/manual/en/function.imagesetstyle.php
Edit -- https://master.php.net/note/edit/99260
Del: integrated -- https://master.php.net/note/delete/99260/integrated
Del: useless -- https://master.php.net/note/delete/99260/useless
Del: bad code -- https://master.php.net/note/delete/99260/bad+code
Del: spam -- https://master.php.net/note/delete/99260/spam
Del: non-english -- https://master.php.net/note/delete/99260/non-english
Del: in docs -- https://master.php.net/note/delete/99260/in+docs
Del: other reasons-- https://master.php.net/note/delete/99260
Reject -- https://master.php.net/note/reject/99260
Search -- https://master.php.net/manage/user-notes.php