Développements
Le coin des copains
harasmanager
Connexion
Créer une image
Écrit par Eric Juhel | 25 Mars 2010
SVG étant une application de XML bénéficie de tous les avantages qu'apporte XML. SVG est du texte et un standard ouvert. Il est composé d'une déclaration XML, et du fragment de SVG.
<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
<svg xmlns="http://www.w3.org/2000/svg" height="500" viewBox="0 0 500 300" width="300" xmlns:xlink="http://www.w3.org/1999/xlink">
$height:=500
$width:=300
$Dom_root:=DOM Creer ref XML("svg";"http://www.w3.org/2000/svg")
DOM ECRIRE ATTRIBUT XML($Dom_root;"xmlns:xlink";"http://www.w3.org/1999/xlink")
DOM ECRIRE ATTRIBUT XML($Dom_root;"width";$width;"height";$height)
DOM ECRIRE ATTRIBUT XML($Dom_root;"viewBox";"0 0 "+Chaine($width)+" "+Chaine($height))
$Dom_root:=SVG_New(500;300)
| < Préc |
|---|


