Call to undefined method ImagickDraw::setStrokeType()

IMagick is a native PHP extension to create and modify images using the ImageMagick API. ImageMagick Studio LLC did not write nor does it maintain the IMagick extension, however, IMagick users are welcome to discuss the extension here.
Post Reply
RainBowDash
Posts: 2
Joined: 2014-10-29T10:58:19-07:00
Authentication code: 6789

Call to undefined method ImagickDraw::setStrokeType()

Post 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?
Bonzo
Posts: 2971
Joined: 2006-05-20T08:08:19-07:00
Location: Cambridge, England

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

Post by Bonzo »

There does not seem to be an option ImagickDraw::setStrokeType(): http://php.net/manual/en/class.imagickdraw.php
RainBowDash
Posts: 2
Joined: 2014-10-29T10:58:19-07:00
Authentication code: 6789

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

Post 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?
Bonzo
Posts: 2971
Joined: 2006-05-20T08:08:19-07:00
Location: Cambridge, England

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

Post 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.
Post Reply