Re: Convert Path to Polygone
| Newsgroups | gmane.text.xml.batik.user |
|---|---|
| Message-ID | <OFAFF81EF8.35775DBF-ON852578C6.0042D860-852578C6.00437A9D@knotes.kodak.com> |
Hi Olaf, oraether <[email protected]> wrote on 07/06/2011 03:31:35 PM: > Has anyone an idea (or a link to a library) how to convert a PATH into > polygon points ? > But not only the lineTo parts - of course the curve (A,C) elements as well. In Batik there are classes to convert a path string into a AWT Shape element (in particular org.apache.batik.parser.AWTPathProducer). Once you have an AWT Shape element you can call it's getPathIterator with a flatness and it will tesselate the curves to the specified accuracy. Thomas DeWeese | CDG Advanced Development | Eastman Kodak Company | 343 State Street | Rochester, NY 14650-0128 | [email protected] | 585 724-0294 | www.kodak.com