This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
I've been playing with the generalPath class, and am happy with how it works. I had previously looked at the awt.geom.Polygon class, but didn't like that it didn't accept floats.
Now that I'm using the generalpath class, I've noticed a big disadvantage from the polygon class - there's no npoints() method!. This method tells me how many points are in the path. I need to know this, because points (n=1), lines (n=2) and polygons (n>2) all need to be treated differently.
I've currently got, the following working - but it seems clunky. Can anyone either confirm that this is a good way to approach this, or suggest an alternative?
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com