[magick-users] Newbie PerlMagick floodfill question ... again

Anthony Thyssen anthony at griffith.edu.au
Sun Oct 28 04:39:12 PDT 2007


rhubarbpie at poetworld.net on  wrote...
| 
| Greetings:
| 
| I earlier posed a question about white outlines after applying 
| floodfill.  It was suggested I apply the antialias or fuzz commands.  
| However, I've experimented with both with no success.  As my gifs are 
| quite simple I'm wondering if the referenced gifs will better explain 
| the problem.
| 
| 
| In the first gif I've drawn circles with red fill connected by red lines:
| 
|     http://my.opera.com/rhubarbpie/albums/showpic.dml?album=389197&picture=5556258
| 
| 
| 
| The second gif shows the result of applying floodfill and the problem.  
| Although floodfill mostly works, I have a white outline around all 
| circles and the outline of the form.  Of the two, the white outline 
| around the circles are the most troublesome.
| 
|     http://my.opera.com/rhubarbpie/albums/showpic.dml?album=389197&picture=5556259
| 
| 
| 
| I'm quite new at this and would appreciate any solution.  Perhaps I've 
| misused the fuzz and antialias options.
| 
That is a problem.  The circles are drawn using anti-aliasing,
generating some mixed red-white pixels,  these is want is showing up.

The better method will be to draw the outline you want, as a filled
polygon shape, rather than trying to floodfill it.
The circles can then be draw over this shape.

In other words, don't use flood fill, but draw a filled shape.

  Anthony Thyssen ( System Programmer )    <A.Thyssen at griffith.edu.au>
 -----------------------------------------------------------------------------
   And even if there was a possibility of life outside the Store,
     it wouldn't be life as we know it!    --- Terry Pratchett  ``Truckers''
 -----------------------------------------------------------------------------
     Anthony's Home is his Castle     http://www.cit.gu.edu.au/~anthony/


More information about the Magick-users mailing list