Page 1 of 1

problem with `Spread'

Posted: 2007-12-10T14:07:36-07:00
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);

Re: problem with `Spread'

Posted: 2007-12-10T18:12:24-07:00
by magick
The documentation is wrong. Use 'radius' instead of 'amount'.

Re: problem with `Spread'

Posted: 2007-12-10T18:14:46-07:00
by RetroJ
Thanks!