Positioning of text with Annotate()
Posted: 2014-10-19T21:44:09-07:00
I'm using Annotate() to add some text on top of an image. Things mostly work but I want the text to be about 1/2 an inch (150 pixels in my case) above the bottom edge of the image instead of right at the bottom edge. I have tried translate=> "0,150" but that didn't seem to move the text at all. Any suggestions?
Code: Select all
my $x = $image->Annotate(
undercolor=>'transparent',
font=>"myfont.ttf",
pointsize=> 48,
fill=>'black',
gravity=>'South',
translate=> "0,150",
text=>"Page #2");
warn "$x" if $x;