CakeFest 2017 NYC, the Official CakePHP Conference


(PECL imagick 2.0.0)

ImagickDraw::setStrokeMiterLimitSpecifies the miter limit


bool ImagickDraw::setStrokeMiterLimit ( int $miterlimit )

Această funcție nu este documentată în prezent; este disponibilă numai lista sa de argumente.

Specifies the miter limit. When two line segments meet at a sharp angle and miter joins have been specified for 'lineJoin', it is possible for the miter to extend far beyond the thickness of the line stroking the path. The miterLimit' imposes a limit on the ratio of the miter length to the 'lineWidth'.



the miter limit

Valorile întoarse

Nu este întoarsă nici o valoare.


Example #1 ImagickDraw::setStrokeMiterLimit()

function setStrokeMiterLimit($strokeColor$fillColor$backgroundColor) {

$draw = new \ImagickDraw();


$yOffset 100;


    for (
$y 0$y 3$y++) {

$draw->setStrokeMiterLimit(40 $y);

$points = [
'x' => 22 3'y' => 15 $y $yOffset],
'x' => 20 3'y' => 20 $y $yOffset],
'x' => 70 5'y' => 45 $y $yOffset],


$image = new \Imagick();


header("Content-Type: image/png");


add a note add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top