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