python - (py)cairo - fill -


is there way fill outside of closed path (polygon)?

background: i'd render maps coastlines - need fill sea blue color, thought easiest , in situation efficient fill outside of coastline polygon blue color.

thanks in advance!

you can add rectangle covering whole drawing area coastline path , set fill rule cairo.fill_rule_even_odd. calling fill() after fills area outside original path. (if choose correct orientation rectangle can skip setting fill rule.)


Comments

Popular posts from this blog

SAP Web Service from .NET via WCF -

c# - Getting "Internal .Net Framework Data Provider error 30" error when column has NULL value -

c++ - How to modify context menu of internet explorer using IDocHostUIHandler::ShowContextMenu? -