Floodfill with "layers"

Posted by user146780 on Stack Overflow See other posts from Stack Overflow or by user146780
Published on 2010-05-01T01:57:33Z Indexed on 2010/05/01 2:07 UTC
Read the original article Hit count: 428

Filed under:
|
|
|

What I want is to create a vector drawing program with layers, but to avoid using transparency / opacity, I want to draw each shape from lowest layer to highest layer onto a single bitmap. For the filling, I want to floodfill the shape. My issue is that, if I have a shape that is drawn then floodfilled, then the next shape overlaps it a bit and that new shape's border is the same as the other one's then floodfill will only partially fill it. Is there a way given a shape's coordinates that I can find the actual bounds for floodfill rather than use a target color? Thanks

© Stack Overflow or respective owner

Related posts about flood-fill

Related posts about c++