Page 1 of 1

Call to undefined method ImagickDraw::setStrokeType()

Posted: 2014-10-29T11:06:13-07:00
by RainBowDash
PHP Fatal error: Call to undefined method ImagickDraw::setStrokeType()

Code: Select all

$dn= new ImagickDraw(); 
$dn->setFont('Roboto-Medium.ttf');
$dn->setFillColor('#FF0000');
$dn->setFontSize(13); $dn->setStrokeColor('white'); $dn->setStrokeWidth(1); $dn->setStrokeType(StrokeType.OUTSIDE);
$b_im->annotateImage( $dn , 80 , 18 , 0 , $text ) ;
Image

what am I doing wrong?

Re: Call to undefined method ImagickDraw::setStrokeType()

Posted: 2014-10-29T11:30:31-07:00
by Bonzo
There does not seem to be an option ImagickDraw::setStrokeType(): http://php.net/manual/en/class.imagickdraw.php

Re: Call to undefined method ImagickDraw::setStrokeType()

Posted: 2014-10-29T11:40:12-07:00
by RainBowDash
Bonzo wrote:There does not seem to be an option ImagickDraw::setStrokeType(): http://php.net/manual/en/class.imagickdraw.php
What? Standard stroke makes it inside, I need outside....
Do not specify this parameter?

Re: Call to undefined method ImagickDraw::setStrokeType()

Posted: 2014-10-29T11:49:05-07:00
by Bonzo
All I can say is what the php documentation says; where did you get ImagickDraw::setStrokeType() from?

When I use stroke it has been on the outside as standard - how would getting it on the inside work. Do you have an example of what you want; something drawn in another program would be useful.