note 94197 modified in function.imagickdraw-setstrokelinejoin by danbrown
| From: | danbrown@php.net | Date: | Wed, 21 Oct 2009 22:35:57 +0000 |
| Subject: | note 94197 modified in function.imagickdraw-setstrokelinejoin by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-161962@lists.php.net to get a copy of this message | ||
For many (myself included) Rex's note maybe not be blatant enough. The constants are declared
for the Imagick class only, so using them requires this syntax: Imagick::LINEJOIN_ constant
Here's an example oh how you might use it:
<?php
$img = new Imagick();
$img->newImage($width, $height, new ImagickPixel('transparent'));
$draw = new ImagickDraw();
$draw->setStrokeLineJoin(Imagick::LINEJOIN_ROUND);
?>
If you're not drawing polylines and are drawing simple lines, also see setStrokeLineCap
--was--
For many (myself included) Rex's note maybe not be blatant enough. The constants are declared
for the Imagick class only, so using them requires this syntax: Imagick::LINEJOIN_ constant
Here's an example oh how you might use it:
$img = new Imagick();
$img->newImage($width, $height, new ImagickPixel('transparent'));
$draw = new ImagickDraw();
$draw->setStrokeLineJoin(Imagick::LINEJOIN_ROUND);
If you're not drawing polylines and are drawing simple lines, also see setStrokeLineCap
http://php.net/manual/en/function.imagickdraw-setstrokelinejoin.php