Drawing outlined text with Annotate: Parameter trouble
Posted: 2007-07-28T15:03:56-07:00
I am trying to create outlined text and have run into trouble using Annotate(). I am running on Ubuntu 6.06 with imageMagick 6.3.4 (as reported by convert).
I have tried setting the strokewidth to a large number, I've also tried setting the weight to Bold but annotate doesn't seem to make any use of these parameters.
I have tried several other things but nothing works so far. I get the feeling that Annotate() doesn't implement several of the parameters documented at http://www.imagemagick.org/script/perl-magick.php. Is there a better source for perlmagick documentation anywhere? Any help would be gratefully recieved.
A code snipit for what I've tried:
I have tried setting the strokewidth to a large number, I've also tried setting the weight to Bold but annotate doesn't seem to make any use of these parameters.
I have tried several other things but nothing works so far. I get the feeling that Annotate() doesn't implement several of the parameters documented at http://www.imagemagick.org/script/perl-magick.php. Is there a better source for perlmagick documentation anywhere? Any help would be gratefully recieved.
A code snipit for what I've tried:
Code: Select all
# Try writing in bold behind the normal text
$error = $image->Annotate(
fill => black,
pointsize => 45,
text => "Test",
weight => Bold,
x => 50,
y => 50,
);
print "-> $error\n";
# Try writing with a wide stroke
# for the stylish red outline
$error = $image->Annotate(
fill => blue,
pointsize => 45,
text => "Test",
StrokeWidth => 5,
Stroke => red,
x => 50,
y => 50,
);