|
From: Shriramana S. <sa...@gm...> - 2013-06-05 02:16:43
|
On Wed, Jun 5, 2013 at 1:21 AM, Francesco Abbate <fra...@gm...> wrote: > What you need is the conv_stroke > parametric class used to create a stroke of a given path. Hello and thank you for your kind reply. One we have done: agg::conv_stroke<agg::path_storage> line(p); line.width(1.0); What is the function call to make it actually do the stroke? I mean, it can't be done at the time of the constructor because the line width is not known (or some default) right? Or is it like dynamic and only at time of extraction of resultant paths it will calculate the stroke? And how to extract the resultant paths. I want to do (in semi-pseudo code): polygon poly << point(0,0) << point(10,0) << point(10,10) << point(0,10) << close ; polygonset polystroked ( poly, strokewidth=1, CAP_SQUARE, JOIN_MITER ) ; and polystroked should contain two contours: the outer (-0.5,-0.5)--(10.5,-0.5)--(10.5,10.5)--(-0.5,10.5)--close and the inner (0.5,0.5)--(9.5,0)--(9.5,9.5)--(0,9.5)--close. Is that what conv_stroke does? If so, good, but how do I extract those paths? Thanks a lot! -- Shriramana Sharma ஶ்ரீரமணஶர்மா श्रीरमणशर्मा |