|
Hi Thank you for reading my post. I post this question to Developers mailing list , so it is some kind of duplicate , please excuse me if it is offensive to post a question in both lists. In dev list members said that i should ask these kind of questions in users mailing list , so i post it again here. My problem : Indeed i want to retrieve a sequence of straight lines from each shape . more explanation : Imagine that i have a java.awt.Shape object , this object contain one of SVG document elements (for example a text element) Now , i want to convert this text element to a Path , and convert the path to a sequence of straight lines. maybe there are some ways to convert the element to straight lines directly.... so far another member kindly answered this question , but i could not find out how i should use his/her tip the other member said : I tried both of this classes but i can not find how i should use them.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... indeed i did not find a method that get a shape and return a sequence of lines. Any help is welcome |
- How do i convert an SVG shape ( rect , text , circle ....... Legolas Woodland
- Re: How do i convert an SVG shape ( rect , text , ci... thomas . deweese
