note 37545 added to function.imagedashedline
| From: | michi at marel dot at | Date: | Wed, 19 Nov 2003 11:49:00 +0000 |
| Subject: | note 37545 added to function.imagedashedline | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-60617@lists.php.net to get a copy of this message | ||
There's a bug till PHP 4.0.4 in this function. You can only draw vertical dashed lines. To draw
other dashed lines you can set <ImageSetStyle> to a special dashed line and draw it by
<ImageLine>.
Sample code:
function MDashedLine($image, $x0, $y0, $x1, $y1, $fg, $bg)
{
$st = array($fg, $fg, $fg, $fg, $bg, $bg, $bg, $bg);
ImageSetStyle($image, $st);
ImageLine($image, $x0, $y0, $x1, $y1, IMG_COLOR_STYLED);
}
}
----
Manual Page -- http://www.php.net/manual/en/function.imagedashedline.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+37545
Delete -- http://master.php.net/manage/user-notes.php?action=delete+37545&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+37545&report=yes
Search -- http://master.php.net/manage/user-notes.php