problems with Floodfill and Transparent in PerlMagick
Günter Bachelier <[email protected]>
| Newsgroups | gmane.comp.video.image-magick.user |
|---|---|
| Message-ID | <[email protected]> |
Hello,
I want to eliminate a background with PerlMagick that has the
blue color:
$color = $Image->Get("pixel[5,5]"); # => $color = 3341,5397,33410,0
I first tried
$image->FloodfillPaint(x=>5, y=>5, fuzz=>'10%', fill=>'none');
but I get a "Can't locate auto/Image/Magick/Floodfill.Pa.al in @INC"-error;
I am using Ubuntu 8.10 with IM 6.3.7 Q16.
Is this a version problem??
I then tried
$image->Transparent(color=>"$color", fuzz=>'10%');
In this case black regions of the image foreground were made transparent
and none of the background!
Any idea what went here wrong?? Thanks!
Guenter