Reputation: 5723
Is there an application to convert a svg drawing to Java's Path2d?
Is this method more efficient than using any SVG to Java toolkit? (with efficiency i refer to runtime speed).
Thanks.
Upvotes: 0
Views: 2869
Reputation: 2206
If you just want to convert SVG path syntax to an AWT path object, you can use Batik's PathParser
class in conjunction with an AWTPathProducer
. That will generate an ExtendedGeneralPath
, which isn't a Path2D
but it does implement Shape
.
Upvotes: 5