j'ai écrit récemment un java program transformer un document SVG en HTML/Toile: Il était facile de traduire un chemin tel queSVG Elliptique Arcs avec Java
d="M 0 0 L 100 100 z"
à quelque chose comme
GeneralPath L= new GeneralPath();
L.moveTo(0,0);
L.lineTo(100,100);
L.closePath();
Cependant, je ne sais pas comment traduire la commande Elliptical Arc en Java/GeneralPath. Par exemple, quelqu'un sait-il comment je devrais traduire la commande suivante en Java/GeneralPath?
d = "M 750 200 a 100 50 135 1 1 250 50"
Merci de votre aide.
Je pense que celui-ci est le bon code: http://www.java2s.com/Code/Java/2D-Graphics-GUI/AgeometricpathconstructedfromstraightlinesquadraticandcubicBeziercurvesandellipticalarc.htm Cordialement – ezsi