problem with `Spread'

PerlMagick is an object-oriented Perl interface to ImageMagick. Use this forum to discuss, make suggestions about, or report bugs concerning PerlMagick.
Post Reply
RetroJ
Posts: 108
Joined: 2006-10-25T08:12:50-07:00

problem with `Spread'

Post by RetroJ »

Hi. I'm unable to get Spread to vary with different values for the `amount' parameter. No matter what number I pass as the amount, the spread always appears to be about 4 pixels. Any ideas? Sample code follows. Thank you.

Code: Select all

#!/usr/bin/perl

use strict;
use warnings;
use Image::Magick;

my $image = Image::Magick->new(size=>'320x200');
$image->Read ('xc:white');
$image->Annotate (text=>"Hello, World!",
                  font=>"Courier",
                  pointsize=>32,
                  fill=>'black',
                  gravity=>'north');
$image->Spread (amount=>60.2);
$image->Write ("x:");
undef ($image);
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: problem with `Spread'

Post by magick »

The documentation is wrong. Use 'radius' instead of 'amount'.
RetroJ
Posts: 108
Joined: 2006-10-25T08:12:50-07:00

Re: problem with `Spread'

Post by RetroJ »

Thanks!
Post Reply