[Image-SIG] Drawing filled polygons with holes with aggdraw

Fredrik Lundh fredrik at pythonware.com
Mon Oct 2 12:40:25 CEST 2006


"Jirí Mikulásek" wrote:

> I would like to ask whether it is possible to draw properly filled multipolygons
> with aggdraw. By properly filled I mean that when I have for example
> multipolygon consisting of two polygons where one is inside another -
> some call these objects polygons with holes - and want to draw it with
> solid fill, then I would like to have filled only the space between
> them.

you should be able to create Path objects:

    http://effbot.org/zone/pythondoc-aggdraw.htm#aggdraw.Path-class

and draw them using the "path" method, but that code is experimental
and may be buggy.

</F> 





More information about the Image-SIG mailing list