draw primitive=>'polyline' fills the interior as if a solid polygon;
do I need additional parameters?
Code: Select all
use Image::Magick;
$image=Image::Magick->new;
$error=$image->Set(size=>'200x200');
$error=$image->Draw( primitive=>'polyline', stroke=>'red',
points=>'20,20 20,100 100,100', strokewidth=>5 );
@blobs = $image->ImageToBlob(magick=>'png');
binmode STDOUT;
print "Content-type: image/png\n";
print "\n";
print $blobs[0];
using version 6.3.4-6 Rectangle and Circle also fill the interior when no fill=> parameter is given unlike version 6.2.9-7 which does not fill.