title: SVG Elliptical Arcs with Java
body: <p>I recently wrote a java <a href="http://plindenbaum.blogspot.com/2009/11/tool-converting-svg-to-canvas_22.html" rel="nofollow noreferrer">program</a> transforming a <strong>SVG</strong> document to HTML/<strong>Canvas</strong>: It was easy to translate a path such as </p>
  
  <pre><code>d="M 0 0 L 100 100 z"
  </code></pre>
  
  <p>to something like</p>
  
  <pre><code>GeneralPath L= new GeneralPath();
  L.moveTo(0,0);
  L.lineTo(100,100);
  L.closePath();
  </code></pre>
  
  <p>However I don't know how to translate the <strong>Elliptical Arc</strong> command to Java/GeneralPath. For example, does anyone know how I should translate the following command to Java/GeneralPath ? </p>
  
  <pre><code>d = "M 750 200 a 100 50 135 1 1 250 50"
  </code></pre>
  
  <p>Thanks for your help.</p>