tobiasaries has asked for the wisdom of the Perl Monks concerning the following question:
use Image::Magick; my $image = Image::Magick->new; my $fontdir= 'c:\winnt\fonts'; opendir FONTDIR, $fontdir; my @fonts = grep /arial.ttf$/, readdir FONTDIR; $image -> Set (size=>"320x20"); $image -> ReadImage("xc:white"); for my $font (@fonts) { $image -> Annotate( text => 'Test', stroke =>"#FF0000", strokewidth =>'1', style =>'normal', weight =>'1', x =>5, y =>15, pointsize=>12, antialias => 0, font =>"\@$fontdir\\$font"); } $image -> write ("jpg:test.jpg");
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Image::Magick ->Annotate Text
by seattlejohn (Deacon) on Jul 08, 2002 at 07:02 UTC | |
|
Re: Image::Magick ->Annotate Text
by grinder (Bishop) on Jul 08, 2002 at 07:11 UTC | |
|
Re: Image::Magick ->Annotate Text
by steves (Curate) on Jul 08, 2002 at 09:44 UTC | |
by Anonymous Monk on Jul 08, 2002 at 13:59 UTC |