Page 1 of 1

Syntax annotate interline-spacing

Posted: 2010-06-16T02:30:36-07:00
by Lifestyle
Hi,

i've got a question regarding the right syntax of annotate:

Code: Select all

$label->Annotate(text=>"South East\n lol",interline-spacing=>13,gravity=>"SouthEast",x=>$x,y=>$y, rotate=>$angle);


because the above line is producing the following interpreter error:

[Wed Jun 16 11:26:56 2010] annotate.pl: Bareword "interline" not allowed while "strict subs" in use at annotate.pl line 46.
[Wed Jun 16 11:26:56 2010] annotate.pl: Execution of annotate.pl aborted due to compilation errors.

Could someone tell me the right syntax ??

Perl Version : 5.10.1.1007
Imagemagick: ImageMagick-6.6.2-5-Q16-windows-dll.exe

Re: Syntax annotate interline-spacing

Posted: 2010-06-16T04:36:32-07:00
by magick
Use 'interline-spacing'. Include the quotes.

Re: Syntax annotate interline-spacing

Posted: 2010-06-16T04:57:17-07:00
by Lifestyle
thx,

have done this before with an older version of image-magick, it has not worked there.

So I have not tried again with the current version, cause it's working now i had take a look at the old version, there interline-spacing wasn't implemented,........

sorry for the dumb question,.....,
everything is fine now.

Re: Syntax annotate interline-spacing

Posted: 2010-06-16T08:00:18-07:00
by Lifestyle
Whats the precission of the tag ?

Re: Syntax annotate interline-spacing

Posted: 2010-06-24T17:42:28-07:00
by anthony