note 14652 added to function.imagesetstyle.php
| From: | php-general at lists dot php dot net | Date: | Wed, 08 Aug 2001 06:49:24 +0000 |
| Subject: | note 14652 added to function.imagesetstyle.php | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-16465@lists.php.net to get a copy of this message | ||
The correct way to do dashed lines with transparent spaces between the dashes is to use the constant
IMG_COLOR_TRANSPARENT instead of a color, like in this example:
$style=array($color, $color, IMG_COLOR_TRANSPARENT, IMG_COLOR_TRANSPARENT, IMG_COLOR_TRANSPARENT );
ImageSetStyle($img, $style);
http://www.php.net/manual/en/function.imagesetstyle.php