Comment 11 for bug 170588

Revision history for this message
Digulla (digulla) wrote :

kulhas: Why treat bitmaps differently from normal vectors?

*: As for rasterize and trace, here is an idea: Don't trace.
Instead overlay the vector image and the fill. Now, scan
every line and search for transitions (nonfill->fill and
fill->nonfill).

Select all paths which are close to these transitions.

Copy them.

Iterate over all intersections and cut the paths there so
you get a bunch of free paths.

Do the transition selection again

Delete all non-selected paths

Now, you should have the outline of the fill as a path with
a pretty good precision.

TODO: When doing the raster fill, how do we handle
non-closed forms? Do we clip at the view borders? Document
borders? At the bounding box of all elements?