Hi Legolas,

Legolas Woodland <[EMAIL PROTECTED]> wrote on 02/14/2006 02:13:47 PM:

> how i can convert a path (SVG path element) into its corresponding 
points ?
> I mean points that i can use to draw the path on a raster canvas.

   Well Batik will draw the path on a raster canvas for you... It's sort
of it's purpose in life ;)

   Anyway if you have the 'd' data you can use the 
batik.parser.AWTPathProducer with the batik.parser.PathParser
to create an AWT GeneralPath which you can either query for
the real 'curve' segments (quadradic and cubic beziers, lines, etc)
or you can call flatten on that path and get a sequence of straight
lines that approximate the original path...


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to