[cairo] How to draw two parallel polylines?

archee@126 archee at 126.com
Mon Jul 28 06:17:06 PDT 2008


Hi, All,

I'm startting to use Cairo to draw roads in a city. Each road can be represented as a polyline with multiple points. To draw a simple road, just create a path with these points and then stroke the path. But if I want to draw both directions of a road, how to create two parallel paths according to the polyline? Is there any facility provided in Cairo doing that?

Thanks in advance!

Regards,
Archee
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.cairographics.org/archives/cairo/attachments/20080728/095732e7/attachment.html 


More information about the cairo mailing list