tags:

views:

133

answers:

1

Hi there. 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.

+1  A: 

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.

heycam