[cairo] Flood Fill ?

Behdad Esfahbod behdad at behdad.org
Sun Jul 29 17:05:23 PDT 2007


On Sun, 2007-07-29 at 12:46 -0400, Sikamikaniboots wrote:
> Hi !
> Is there any way to do a "flood fill" with cairo ?
> The idea would be to paint an area bounded by a given colour around a
> given coordinate.

Hi again,

No, there isn't.  Cairo doesn't work that way.  Please see this
excellent tutorial about the cairo rendering model:

  http://cairographics.org/tutorial/

> I couldn't find any example for this sort of fill.
> Any help would be appreciated !
> thanks !

Cheers,
-- 
behdad
http://behdad.org/

"Those who would give up Essential Liberty to purchase a little
 Temporary Safety, deserve neither Liberty nor Safety."
        -- Benjamin Franklin, 1759





More information about the cairo mailing list