Draw(tile=> ...) not implemented?
Posted: 2006-12-09T19:16:55-07:00
The doc says tile=>image-handle is a parameter for Draw but I can't get it to work.
I can fill a polygon with a color:
But I cannot fill (tile) the polygon with an image:
Is that not the correct syntax? The following command-line versions both work fine:
What's the problem?
Rick (running IM 6.3.0 on Win XP)
I can fill a polygon with a color:
Code: Select all
use Image::Magick;
my $image = new Image::Magick(size=>'300x300');
$image->Read('xc:transparent');
$image->Draw(primitive=>'polygon', points=>"100,50 100,200 200,150 200,100", fill=>'green');
$image->Write(filename=>'polyfill.png');
Code: Select all
use Image::Magick;
my $image = new Image::Magick(size=>'300x300');
$image->Read('xc:transparent');
$image->Draw(primitive=>'polygon', points=>"100,50 100,200 200,150 200,100", tile=>'mytile.png');
$image->Write(filename=>'polyfill.png');
Code: Select all
convert -size 300x300 xc:transparent -fill green -draw "polygon 100,50 100,200 200,150 200,100" mytry.png
convert -size 300x300 xc:transparent -tile mytile.png -draw "polygon 100,50 100,200 200,150 200,100" mytry.png
Rick (running IM 6.3.0 on Win XP)