Seite 1 von 3

svg rendern

Verfasst: Sa Dez 11, 2010 7:50 pm
von gucky
Hallo,

ich wollte mal fragen ob schonmal jemand svg bilder gerendert hat und eine gute lib dafür hat. ich hab antigrain gefunden, finde aber kein beispiel wo mal gezeigt wird, wie man es benutzen kann. weiß vlt einer etw. gutes???

schöne grüße gucky

Re: svg rendern

Verfasst: Sa Dez 11, 2010 7:55 pm
von Kerli
Am einfachsten ist es wenn du dein SVG einfach im Browser oder zum Beispiel mit eog oder Gimp öffnest, da wird es dir direkt auf den Bildschirm gerendert. Bevor wir dir also Helfen können muss du zuerst einmal sagen wohin du dein SVG rendern möchtest. Möglichkeiten gibt es viele (Rendern in eine Datei, in ein OpenGL Kontext, in eine GUI, etc.)...

Re: svg rendern

Verfasst: Sa Dez 11, 2010 10:09 pm
von gucky
achso, ich möchte es in einer datei rendern, aber ich will das es sofort in ein anderes gängiges bildformat umgewandelt wird, das man ohne probleme dann überall öffnen kann, bzw. ich möchte es nur convertieren

Re: svg rendern

Verfasst: So Dez 12, 2010 10:37 am
von cloidnerux
achso, ich möchte es in einer datei rendern, aber ich will das es sofort in ein anderes gängiges bildformat umgewandelt wird, das man ohne probleme dann überall öffnen kann, bzw. ich möchte es nur convertieren
Konvertieren geht am Besten mit Inkscape.
Wenn du aber ein tool selbst schreiben willst, solltest du dir mal cairo anschauen, das wird meines wissens nach auch in Inkscape genutzt.

Re: svg rendern

Verfasst: So Dez 12, 2010 11:05 am
von Dirty Oerti
Oder, wenn du dabei viel lernen willst, dann schreibst du dir deinen Converter selbst, und guckst dir dabei an, wie SVG aufgebaut ist.
Dann kannst du es auslesen und, z.B. mit einer Zeichenbibliothek wie z.B. GD in ein anderes Format zeichnen.
Das Ganze erfordert natürlich, dass du dich mit SVG stark auseinandersetzt, es wird also sicherlich dauern ;)

Mal ein Beispiel, wie SVG aussieht...
Hier der "Code" bzw Dateiinhalt:
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg viewBox="0 0 1600 1000"
xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink"
>

<desc>Produced by GNUPLOT 4.4 patchlevel 0 </desc>

<defs>

<circle id='gpDot' r='0.5' stroke-width='0.5'/>
<path id='gpPt0' stroke-width='0.222' stroke='currentColor' d='M-1,0 h2 M0,-1 v2'/>
<path id='gpPt1' stroke-width='0.222' stroke='currentColor' d='M-1,-1 L1,1 M1,-1 L-1,1'/>
<path id='gpPt2' stroke-width='0.222' stroke='currentColor' d='M-1,0 L1,0 M0,-1 L0,1 M-1,-1 L1,1 M-1,1 L1,-1'/>
<rect id='gpPt3' stroke-width='0.222' stroke='currentColor' x='-1' y='-1' width='2' height='2'/>
<rect id='gpPt4' stroke-width='0.222' stroke='currentColor' fill='currentColor' x='-1' y='-1' width='2' height='2'/>
<circle id='gpPt5' stroke-width='0.222' stroke='currentColor' cx='0' cy='0' r='1'/>
<use xlink:href='#gpPt5' id='gpPt6' fill='currentColor' stroke='none'/>
<path id='gpPt7' stroke-width='0.222' stroke='currentColor' d='M0,-1.33 L-1.33,0.67 L1.33,0.67 z'/>
<use xlink:href='#gpPt7' id='gpPt8' fill='currentColor' stroke='none'/>
<use xlink:href='#gpPt7' id='gpPt9' stroke='currentColor' transform='rotate(180)'/>
<use xlink:href='#gpPt9' id='gpPt10' fill='currentColor' stroke='none'/>
<use xlink:href='#gpPt3' id='gpPt11' stroke='currentColor' transform='rotate(45)'/>
<use xlink:href='#gpPt11' id='gpPt12' fill='currentColor' stroke='none'/>
</defs>
<g style="fill:none; color:white; stroke:currentColor; stroke-width:1.00; stroke-linecap:butt; stroke-linejoin:miter">
</g>
<g style="fill:none; color:black; stroke:currentColor; stroke-width:1.00; stroke-linecap:butt; stroke-linejoin:miter">
<g style = 'stroke:none; shape-rendering:crispEdges'>
<polygon fill = 'rgb(255, 255, 255)' points = '0.0,1000.0 1599.9,1000.0 1599.9,0.1 0.0,0.1 '/>
</g>
<path stroke='black' d='M0.0,1000.0 L0.0,0.1 L1599.9,0.1 L1599.9,1000.0 L0.0,1000.0 '></path>
</g>
<g style="fill:none; color:gray; stroke:currentColor; stroke-width:1.00; stroke-linecap:butt; stroke-linejoin:miter">
<path d='M71.9,942.4 L1579.1,942.4 '></path>
</g>
<g style="fill:none; color:black; stroke:currentColor; stroke-width:1.00; stroke-linecap:butt; stroke-linejoin:miter">
<path d='M71.9,942.4 L80.9,942.4 M1579.1,942.4 L1570.1,942.4 '></path>
<g transform="translate(63.6,946.9)" style="stroke:none; fill:black; font-family:Arial; font-size:12.00pt; text-anchor:end">
<text><tspan> 0</tspan>
</text>
</g>
</g>
<g style="fill:none; color:gray; stroke:currentColor; stroke-width:1.00; stroke-linecap:butt; stroke-linejoin:miter">
<path d='M71.9,911.5 L1579.1,911.5 '></path>
</g>
<g style="fill:none; color:black; stroke:currentColor; stroke-width:1.00; stroke-linecap:butt; stroke-linejoin:miter">
<path d='M71.9,911.5 L80.9,911.5 M1579.1,911.5 L1570.1,911.5 '></path>
<g transform="translate(63.6,916.0)" style="stroke:none; fill:black; font-family:Arial; font-size:12.00pt; text-anchor:end">
<text><tspan> 2</tspan>
</text>
</g>
</g>
<g style="fill:none; color:gray; stroke:currentColor; stroke-width:1.00; stroke-linecap:butt; stroke-linejoin:miter">
<path d='M71.9,880.7 L1579.1,880.7 '></path>
</g>
<g style="fill:none; color:black; stroke:currentColor; stroke-width:1.00; stroke-linecap:butt; stroke-linejoin:miter">
<path d='M71.9,880.7 L80.9,880.7 M1579.1,880.7 L1570.1,880.7 '></path>
<g transform="translate(63.6,885.2)" style="stroke:none; fill:black; font-family:Arial; font-size:12.00pt; text-anchor:end">
<text><tspan> 4</tspan>
</text>
</g>
</g>
<g style="fill:none; color:gray; stroke:currentColor; stroke-width:1.00; stroke-linecap:butt; stroke-linejoin:miter">
<path d='M71.9,849.8 L1579.1,849.8 '></path>
</g>
<g style="fill:none; color:black; stroke:currentColor; stroke-width:1.00; stroke-linecap:butt; stroke-linejoin:miter">
<path d='M71.9,849.8 L80.9,849.8 M1579.1,849.8 L1570.1,849.8 '></path>
<g transform="translate(63.6,854.3)" style="stroke:none; fill:black; font-family:Arial; font-size:12.00pt; text-anchor:end">
<text><tspan> 6</tspan>
</text>
</g>
</g>
<g style="fill:none; color:gray; stroke:currentColor; stroke-width:1.00; stroke-linecap:butt; stroke-linejoin:miter">
<path d='M71.9,819.0 L1579.1,819.0 '></path>
</g>
<g style="fill:none; color:black; stroke:currentColor; stroke-width:1.00; stroke-linecap:butt; stroke-linejoin:miter">
<path d='M71.9,819.0 L80.9,819.0 M1579.1,819.0 L1570.1,819.0 '></path>
<g transform="translate(63.6,823.5)" style="stroke:none; fill:black; font-family:Arial; font-size:12.00pt; text-anchor:end">
<text><tspan> 8</tspan>
</text>
</g>
</g>
<g style="fill:none; color:gray; stroke:currentColor; stroke-width:1.00; stroke-linecap:butt; stroke-linejoin:miter">
<path d='M71.9,788.1 L1579.1,788.1 '></path>
</g>
<g style="fill:none; color:black; stroke:currentColor; stroke-width:1.00; stroke-linecap:butt; stroke-linejoin:miter">
<path d='M71.9,788.1 L80.9,788.1 M1579.1,788.1 L1570.1,788.1 '></path>
<g transform="translate(63.6,792.6)" style="stroke:none; fill:black; font-family:Arial; font-size:12.00pt; text-anchor:end">
<text><tspan> 10</tspan>
</text>
</g>
</g>
<g style="fill:none; color:gray; stroke:currentColor; stroke-width:1.00; stroke-linecap:butt; stroke-linejoin:miter">
<path d='M71.9,757.3 L1579.1,757.3 '></path>
</g>
<g style="fill:none; color:black; stroke:currentColor; stroke-width:1.00; stroke-linecap:butt; stroke-linejoin:miter">
<path d='M71.9,757.3 L80.9,757.3 M1579.1,757.3 L1570.1,757.3 '></path>
<g transform="translate(63.6,761.8)" style="stroke:none; fill:black; font-family:Arial; font-size:12.00pt; text-anchor:end">
<text><tspan> 12</tspan>
</text>
</g>
</g>
<g style="fill:none; color:gray; stroke:currentColor; stroke-width:1.00; stroke-linecap:butt; stroke-linejoin:miter">
<path d='M71.9,726.4 L1579.1,726.4 '></path>
</g>
<g style="fill:none; color:black; stroke:currentColor; stroke-width:1.00; stroke-linecap:butt; stroke-linejoin:miter">
<path d='M71.9,726.4 L80.9,726.4 M1579.1,726.4 L1570.1,726.4 '></path>
<g transform="translate(63.6,730.9)" style="stroke:none; fill:black; font-family:Arial; font-size:12.00pt; text-anchor:end">
<text><tspan> 14</tspan>
</text>
</g>
</g>
<g style="fill:none; color:gray; stroke:currentColor; stroke-width:1.00; stroke-linecap:butt; stroke-linejoin:miter">
<path d='M71.9,695.5 L1579.1,695.5 '></path>
</g>
<g style="fill:none; color:black; stroke:currentColor; stroke-width:1.00; stroke-linecap:butt; stroke-linejoin:miter">
<path d='M71.9,695.5 L80.9,695.5 M1579.1,695.5 L1570.1,695.5 '></path>
<g transform="translate(63.6,700.0)" style="stroke:none; fill:black; font-family:Arial; font-size:12.00pt; text-anchor:end">
<text><tspan> 16</tspan>
</text>
</g>
</g>
<g style="fill:none; color:gray; stroke:currentColor; stroke-width:1.00; stroke-linecap:butt; stroke-linejoin:miter">
<path d='M71.9,664.7 L1579.1,664.7 '></path>
</g>
<g style="fill:none; color:black; stroke:currentColor; stroke-width:1.00; stroke-linecap:butt; stroke-linejoin:miter">
<path d='M71.9,664.7 L80.9,664.7 M1579.1,664.7 L1570.1,664.7 '></path>
<g transform="translate(63.6,669.2)" style="stroke:none; fill:black; font-family:Arial; font-size:12.00pt; text-anchor:end">
<text><tspan> 18</tspan>
</text>
</g>
</g>
<g style="fill:none; color:gray; stroke:currentColor; stroke-width:1.00; stroke-linecap:butt; stroke-linejoin:miter">
<path d='M71.9,633.8 L1579.1,633.8 '></path>
</g>
<g style="fill:none; color:black; stroke:currentColor; stroke-width:1.00; stroke-linecap:butt; stroke-linejoin:miter">
<path d='M71.9,633.8 L80.9,633.8 M1579.1,633.8 L1570.1,633.8 '></path>
<g transform="translate(63.6,638.3)" style="stroke:none; fill:black; font-family:Arial; font-size:12.00pt; text-anchor:end">
<text><tspan> 20</tspan>
</text>
</g>
</g>
<g style="fill:none; color:gray; stroke:currentColor; stroke-width:1.00; stroke-linecap:butt; stroke-linejoin:miter">
<path d='M71.9,603.0 L1579.1,603.0 '></path>
</g>
<g style="fill:none; color:black; stroke:currentColor; stroke-width:1.00; stroke-linecap:butt; stroke-linejoin:miter">
<path d='M71.9,603.0 L80.9,603.0 M1579.1,603.0 L1570.1,603.0 '></path>
<g transform="translate(63.6,607.5)" style="stroke:none; fill:black; font-family:Arial; font-size:12.00pt; text-anchor:end">
<text><tspan> 22</tspan>
</text>
</g>
</g>
<g style="fill:none; color:gray; stroke:currentColor; stroke-width:1.00; stroke-linecap:butt; stroke-linejoin:miter">
<path d='M71.9,572.1 L1579.1,572.1 '></path>
</g>
<g style="fill:none; color:black; stroke:currentColor; stroke-width:1.00; stroke-linecap:butt; stroke-linejoin:miter">
<path d='M71.9,572.1 L80.9,572.1 M1579.1,572.1 L1570.1,572.1 '></path>
<g transform="translate(63.6,576.6)" style="stroke:none; fill:black; font-family:Arial; font-size:12.00pt; text-anchor:end">
<text><tspan> 24</tspan>
</text>
</g>
</g>
<g style="fill:none; color:gray; stroke:currentColor; stroke-width:1.00; stroke-linecap:butt; stroke-linejoin:miter">
<path d='M71.9,541.3 L1579.1,541.3 '></path>
</g>
<g style="fill:none; color:black; stroke:currentColor; stroke-width:1.00; stroke-linecap:butt; stroke-linejoin:miter">
<path d='M71.9,541.3 L80.9,541.3 M1579.1,541.3 L1570.1,541.3 '></path>
<g transform="translate(63.6,545.8)" style="stroke:none; fill:black; font-family:Arial; font-size:12.00pt; text-anchor:end">
<text><tspan> 26</tspan>
</text>
</g>
</g>
<g style="fill:none; color:gray; stroke:currentColor; stroke-width:1.00; stroke-linecap:butt; stroke-linejoin:miter">
<path d='M71.9,510.4 L1579.1,510.4 '></path>
</g>
<g style="fill:none; color:black; stroke:currentColor; stroke-width:1.00; stroke-linecap:butt; stroke-linejoin:miter">
<path d='M71.9,510.4 L80.9,510.4 M1579.1,510.4 L1570.1,510.4 '></path>
<g transform="translate(63.6,514.9)" style="stroke:none; fill:black; font-family:Arial; font-size:12.00pt; text-anchor:end">
<text><tspan> 28</tspan>
</text>
</g>
</g>
<g style="fill:none; color:gray; stroke:currentColor; stroke-width:1.00; stroke-linecap:butt; stroke-linejoin:miter">
<path d='M71.9,479.5 L1579.1,479.5 '></path>
</g>
<g style="fill:none; color:black; stroke:currentColor; stroke-width:1.00; stroke-linecap:butt; stroke-linejoin:miter">
<path d='M71.9,479.5 L80.9,479.5 M1579.1,479.5 L1570.1,479.5 '></path>
<g transform="translate(63.6,484.0)" style="stroke:none; fill:black; font-family:Arial; font-size:12.00pt; text-anchor:end">
<text><tspan> 30</tspan>
</text>
</g>
</g>
<g style="fill:none; color:gray; stroke:currentColor; stroke-width:1.00; stroke-linecap:butt; stroke-linejoin:miter">
<path d='M71.9,448.7 L1579.1,448.7 '></path>
</g>
<g style="fill:none; color:black; stroke:currentColor; stroke-width:1.00; stroke-linecap:butt; stroke-linejoin:miter">
<path d='M71.9,448.7 L80.9,448.7 M1579.1,448.7 L1570.1,448.7 '></path>
<g transform="translate(63.6,453.2)" style="stroke:none; fill:black; font-family:Arial; font-size:12.00pt; text-anchor:end">
<text><tspan> 32</tspan>
</text>
</g>
</g>
<g style="fill:none; color:gray; stroke:currentColor; stroke-width:1.00; stroke-linecap:butt; stroke-linejoin:miter">
<path d='M71.9,417.8 L1579.1,417.8 '></path>
</g>
<g style="fill:none; color:black; stroke:currentColor; stroke-width:1.00; stroke-linecap:butt; stroke-linejoin:miter">
<path d='M71.9,417.8 L80.9,417.8 M1579.1,417.8 L1570.1,417.8 '></path>
<g transform="translate(63.6,422.3)" style="stroke:none; fill:black; font-family:Arial; font-size:12.00pt; text-anchor:end">
<text><tspan> 34</tspan>
</text>
</g>
</g>
<g style="fill:none; color:gray; stroke:currentColor; stroke-width:1.00; stroke-linecap:butt; stroke-linejoin:miter">
<path d='M71.9,387.0 L1579.1,387.0 '></path>
</g>
<g style="fill:none; color:black; stroke:currentColor; stroke-width:1.00; stroke-linecap:butt; stroke-linejoin:miter">
<path d='M71.9,387.0 L80.9,387.0 M1579.1,387.0 L1570.1,387.0 '></path>
<g transform="translate(63.6,391.5)" style="stroke:none; fill:black; font-family:Arial; font-size:12.00pt; text-anchor:end">
<text><tspan> 36</tspan>
</text>
</g>
</g>
<g style="fill:none; color:gray; stroke:currentColor; stroke-width:1.00; stroke-linecap:butt; stroke-linejoin:miter">
<path d='M71.9,356.1 L1579.1,356.1 '></path>
</g>
<g style="fill:none; color:black; stroke:currentColor; stroke-width:1.00; stroke-linecap:butt; stroke-linejoin:miter">
<path d='M71.9,356.1 L80.9,356.1 M1579.1,356.1 L1570.1,356.1 '></path>
<g transform="translate(63.6,360.6)" style="stroke:none; fill:black; font-family:Arial; font-size:12.00pt; text-anchor:end">
<text><tspan> 38</tspan>
</text>
</g>
</g>
<g style="fill:none; color:gray; stroke:currentColor; stroke-width:1.00; stroke-linecap:butt; stroke-linejoin:miter">
<path d='M71.9,325.3 L1579.1,325.3 '></path>
</g>
<g style="fill:none; color:black; stroke:currentColor; stroke-width:1.00; stroke-linecap:butt; stroke-linejoin:miter">
<path d='M71.9,325.3 L80.9,325.3 M1579.1,325.3 L1570.1,325.3 '></path>
<g transform="translate(63.6,329.8)" style="stroke:none; fill:black; font-family:Arial; font-size:12.00pt; text-anchor:end">
<text><tspan> 40</tspan>
</text>
</g>
</g>
<g style="fill:none; color:gray; stroke:currentColor; stroke-width:1.00; stroke-linecap:butt; stroke-linejoin:miter">
<path d='M71.9,294.4 L1579.1,294.4 '></path>
</g>
<g style="fill:none; color:black; stroke:currentColor; stroke-width:1.00; stroke-linecap:butt; stroke-linejoin:miter">
<path d='M71.9,294.4 L80.9,294.4 M1579.1,294.4 L1570.1,294.4 '></path>
<g transform="translate(63.6,298.9)" style="stroke:none; fill:black; font-family:Arial; font-size:12.00pt; text-anchor:end">
<text><tspan> 42</tspan>
</text>
</g>
</g>
<g style="fill:none; color:gray; stroke:currentColor; stroke-width:1.00; stroke-linecap:butt; stroke-linejoin:miter">
<path d='M71.9,263.6 L1579.1,263.6 '></path>
</g>
<g style="fill:none; color:black; stroke:currentColor; stroke-width:1.00; stroke-linecap:butt; stroke-linejoin:miter">
<path d='M71.9,263.6 L80.9,263.6 M1579.1,263.6 L1570.1,263.6 '></path>
<g transform="translate(63.6,268.1)" style="stroke:none; fill:black; font-family:Arial; font-size:12.00pt; text-anchor:end">
<text><tspan> 44</tspan>
</text>
</g>
</g>
<g style="fill:none; color:gray; stroke:currentColor; stroke-width:1.00; stroke-linecap:butt; stroke-linejoin:miter">
<path d='M71.9,232.7 L1579.1,232.7 '></path>
</g>
<g style="fill:none; color:black; stroke:currentColor; stroke-width:1.00; stroke-linecap:butt; stroke-linejoin:miter">
<path d='M71.9,232.7 L80.9,232.7 M1579.1,232.7 L1570.1,232.7 '></path>
<g transform="translate(63.6,237.2)" style="stroke:none; fill:black; font-family:Arial; font-size:12.00pt; text-anchor:end">
<text><tspan> 46</tspan>
</text>
</g>
</g>
<g style="fill:none; color:gray; stroke:currentColor; stroke-width:1.00; stroke-linecap:butt; stroke-linejoin:miter">
<path d='M71.9,201.8 L1579.1,201.8 '></path>
</g>
<g style="fill:none; color:black; stroke:currentColor; stroke-width:1.00; stroke-linecap:butt; stroke-linejoin:miter">
<path d='M71.9,201.8 L80.9,201.8 M1579.1,201.8 L1570.1,201.8 '></path>
<g transform="translate(63.6,206.3)" style="stroke:none; fill:black; font-family:Arial; font-size:12.00pt; text-anchor:end">
<text><tspan> 48</tspan>
</text>
</g>
</g>
<g style="fill:none; color:gray; stroke:currentColor; stroke-width:1.00; stroke-linecap:butt; stroke-linejoin:miter">
<path d='M71.9,171.0 L1579.1,171.0 '></path>
</g>
<g style="fill:none; color:black; stroke:currentColor; stroke-width:1.00; stroke-linecap:butt; stroke-linejoin:miter">
<path d='M71.9,171.0 L80.9,171.0 M1579.1,171.0 L1570.1,171.0 '></path>
<g transform="translate(63.6,175.5)" style="stroke:none; fill:black; font-family:Arial; font-size:12.00pt; text-anchor:end">
<text><tspan> 50</tspan>
</text>
</g>
</g>
<g style="fill:none; color:gray; stroke:currentColor; stroke-width:1.00; stroke-linecap:butt; stroke-linejoin:miter">
<path d='M71.9,140.1 L1579.1,140.1 '></path>
</g>
<g style="fill:none; color:black; stroke:currentColor; stroke-width:1.00; stroke-linecap:butt; stroke-linejoin:miter">
<path d='M71.9,140.1 L80.9,140.1 M1579.1,140.1 L1570.1,140.1 '></path>
<g transform="translate(63.6,144.6)" style="stroke:none; fill:black; font-family:Arial; font-size:12.00pt; text-anchor:end">
<text><tspan> 52</tspan>
</text>
</g>
</g>
<g style="fill:none; color:gray; stroke:currentColor; stroke-width:1.00; stroke-linecap:butt; stroke-linejoin:miter">
<path d='M71.9,109.3 L1579.1,109.3 '></path>
</g>
<g style="fill:none; color:black; stroke:currentColor; stroke-width:1.00; stroke-linecap:butt; stroke-linejoin:miter">
<path d='M71.9,109.3 L80.9,109.3 M1579.1,109.3 L1570.1,109.3 '></path>
<g transform="translate(63.6,113.8)" style="stroke:none; fill:black; font-family:Arial; font-size:12.00pt; text-anchor:end">
<text><tspan> 54</tspan>
</text>
</g>
</g>
<g style="fill:none; color:gray; stroke:currentColor; stroke-width:1.00; stroke-linecap:butt; stroke-linejoin:miter">
<path d='M71.9,78.4 L1579.1,78.4 '></path>
</g>
<g style="fill:none; color:black; stroke:currentColor; stroke-width:1.00; stroke-linecap:butt; stroke-linejoin:miter">
<path d='M71.9,78.4 L80.9,78.4 M1579.1,78.4 L1570.1,78.4 '></path>
<g transform="translate(63.6,82.9)" style="stroke:none; fill:black; font-family:Arial; font-size:12.00pt; text-anchor:end">
<text><tspan> 56</tspan>
</text>
</g>
</g>
<g style="fill:none; color:gray; stroke:currentColor; stroke-width:1.00; stroke-linecap:butt; stroke-linejoin:miter">
<path d='M71.9,47.6 L1579.1,47.6 '></path>
</g>
<g style="fill:none; color:black; stroke:currentColor; stroke-width:1.00; stroke-linecap:butt; stroke-linejoin:miter">
<path d='M71.9,47.6 L80.9,47.6 M1579.1,47.6 L1570.1,47.6 '></path>
<g transform="translate(63.6,52.1)" style="stroke:none; fill:black; font-family:Arial; font-size:12.00pt; text-anchor:end">
<text><tspan> 58</tspan>
</text>
</g>
</g>
<g style="fill:none; color:gray; stroke:currentColor; stroke-width:1.00; stroke-linecap:butt; stroke-linejoin:miter">
<path d='M71.9,16.7 L1579.1,16.7 '></path>
</g>
<g style="fill:none; color:black; stroke:currentColor; stroke-width:1.00; stroke-linecap:butt; stroke-linejoin:miter">
<path d='M71.9,16.7 L80.9,16.7 M1579.1,16.7 L1570.1,16.7 '></path>
<g transform="translate(63.6,21.2)" style="stroke:none; fill:black; font-family:Arial; font-size:12.00pt; text-anchor:end">
<text><tspan> 60</tspan>
</text>
</g>
</g>
<g style="fill:none; color:gray; stroke:currentColor; stroke-width:1.00; stroke-linecap:butt; stroke-linejoin:miter">
<path d='M71.9,942.4 L71.9,16.7 '></path>
</g>
<g style="fill:none; color:black; stroke:currentColor; stroke-width:1.00; stroke-linecap:butt; stroke-linejoin:miter">
<path d='M71.9,942.4 L71.9,933.4 M71.9,16.7 L71.9,25.7 '></path>
<g transform="translate(71.9,964.9)" style="stroke:none; fill:black; font-family:Arial; font-size:12.00pt; text-anchor:middle">
<text><tspan> 0</tspan>
</text>
</g>
</g>
<g style="fill:none; color:gray; stroke:currentColor; stroke-width:1.00; stroke-linecap:butt; stroke-linejoin:miter">
<path d='M132.2,942.4 L132.2,16.7 '></path>
</g>
<g style="fill:none; color:black; stroke:currentColor; stroke-width:1.00; stroke-linecap:butt; stroke-linejoin:miter">
<path d='M132.2,942.4 L132.2,933.4 M132.2,16.7 L132.2,25.7 '></path>
<g transform="translate(132.2,964.9)" style="stroke:none; fill:black; font-family:Arial; font-size:12.00pt; text-anchor:middle">
<text><tspan> 1000</tspan>
</text>
</g>
</g>
<g style="fill:none; color:gray; stroke:currentColor; stroke-width:1.00; stroke-linecap:butt; stroke-linejoin:miter">
<path d='M192.5,942.4 L192.5,16.7 '></path>
</g>
<g style="fill:none; color:black; stroke:currentColor; stroke-width:1.00; stroke-linecap:butt; stroke-linejoin:miter">
<path d='M192.5,942.4 L192.5,933.4 M192.5,16.7 L192.5,25.7 '></path>
<g transform="translate(192.5,964.9)" style="stroke:none; fill:black; font-family:Arial; font-size:12.00pt; text-anchor:middle">
<text><tspan> 2000</tspan>
</text>
</g>
</g>
<g style="fill:none; color:gray; stroke:currentColor; stroke-width:1.00; stroke-linecap:butt; stroke-linejoin:miter">
<path d='M252.8,942.4 L252.8,16.7 '></path>
</g>
<g style="fill:none; color:black; stroke:currentColor; stroke-width:1.00; stroke-linecap:butt; stroke-linejoin:miter">
<path d='M252.8,942.4 L252.8,933.4 M252.8,16.7 L252.8,25.7 '></path>
<g transform="translate(252.8,964.9)" style="stroke:none; fill:black; font-family:Arial; font-size:12.00pt; text-anchor:middle">
<text><tspan> 3000</tspan>
</text>
</g>
</g>
<g style="fill:none; color:gray; stroke:currentColor; stroke-width:1.00; stroke-linecap:butt; stroke-linejoin:miter">
<path d='M313.1,942.4 L313.1,16.7 '></path>
</g>
<g style="fill:none; color:black; stroke:currentColor; stroke-width:1.00; stroke-linecap:butt; stroke-linejoin:miter">
<path d='M313.1,942.4 L313.1,933.4 M313.1,16.7 L313.1,25.7 '></path>
<g transform="translate(313.1,964.9)" style="stroke:none; fill:black; font-family:Arial; font-size:12.00pt; text-anchor:middle">
<text><tspan> 4000</tspan>
</text>
</g>
</g>
<g style="fill:none; color:gray; stroke:currentColor; stroke-width:1.00; stroke-linecap:butt; stroke-linejoin:miter">
<path d='M373.3,942.4 L373.3,16.7 '></path>
</g>
<g style="fill:none; color:black; stroke:currentColor; stroke-width:1.00; stroke-linecap:butt; stroke-linejoin:miter">
<path d='M373.3,942.4 L373.3,933.4 M373.3,16.7 L373.3,25.7 '></path>
<g transform="translate(373.3,964.9)" style="stroke:none; fill:black; font-family:Arial; font-size:12.00pt; text-anchor:middle">
<text><tspan> 5000</tspan>
</text>
</g>
</g>
<g style="fill:none; color:gray; stroke:currentColor; stroke-width:1.00; stroke-linecap:butt; stroke-linejoin:miter">
<path d='M433.6,942.4 L433.6,16.7 '></path>
</g>
<g style="fill:none; color:black; stroke:currentColor; stroke-width:1.00; stroke-linecap:butt; stroke-linejoin:miter">
<path d='M433.6,942.4 L433.6,933.4 M433.6,16.7 L433.6,25.7 '></path>
<g transform="translate(433.6,964.9)" style="stroke:none; fill:black; font-family:Arial; font-size:12.00pt; text-anchor:middle">
<text><tspan> 6000</tspan>
</text>
</g>
</g>
<g style="fill:none; color:gray; stroke:currentColor; stroke-width:1.00; stroke-linecap:butt; stroke-linejoin:miter">
<path d='M493.9,942.4 L493.9,16.7 '></path>
</g>
<g style="fill:none; color:black; stroke:currentColor; stroke-width:1.00; stroke-linecap:butt; stroke-linejoin:miter">
<path d='M493.9,942.4 L493.9,933.4 M493.9,16.7 L493.9,25.7 '></path>
<g transform="translate(493.9,964.9)" style="stroke:none; fill:black; font-family:Arial; font-size:12.00pt; text-anchor:middle">
<text><tspan> 7000</tspan>
</text>
</g>
</g>
<g style="fill:none; color:gray; stroke:currentColor; stroke-width:1.00; stroke-linecap:butt; stroke-linejoin:miter">
<path d='M554.2,942.4 L554.2,16.7 '></path>
</g>
<g style="fill:none; color:black; stroke:currentColor; stroke-width:1.00; stroke-linecap:butt; stroke-linejoin:miter">
<path d='M554.2,942.4 L554.2,933.4 M554.2,16.7 L554.2,25.7 '></path>
<g transform="translate(554.2,964.9)" style="stroke:none; fill:black; font-family:Arial; font-size:12.00pt; text-anchor:middle">
<text><tspan> 8000</tspan>
</text>
</g>
</g>
<g style="fill:none; color:gray; stroke:currentColor; stroke-width:1.00; stroke-linecap:butt; stroke-linejoin:miter">
<path d='M614.5,942.4 L614.5,16.7 '></path>
</g>
<g style="fill:none; color:black; stroke:currentColor; stroke-width:1.00; stroke-linecap:butt; stroke-linejoin:miter">
<path d='M614.5,942.4 L614.5,933.4 M614.5,16.7 L614.5,25.7 '></path>
<g transform="translate(614.5,964.9)" style="stroke:none; fill:black; font-family:Arial; font-size:12.00pt; text-anchor:middle">
<text><tspan> 9000</tspan>
</text>
</g>
</g>
<g style="fill:none; color:gray; stroke:currentColor; stroke-width:1.00; stroke-linecap:butt; stroke-linejoin:miter">
<path d='M674.8,942.4 L674.8,16.7 '></path>
</g>
<g style="fill:none; color:black; stroke:currentColor; stroke-width:1.00; stroke-linecap:butt; stroke-linejoin:miter">
<path d='M674.8,942.4 L674.8,933.4 M674.8,16.7 L674.8,25.7 '></path>
<g transform="translate(674.8,964.9)" style="stroke:none; fill:black; font-family:Arial; font-size:12.00pt; text-anchor:middle">
<text><tspan> 10000</tspan>
</text>
</g>
</g>
<g style="fill:none; color:gray; stroke:currentColor; stroke-width:1.00; stroke-linecap:butt; stroke-linejoin:miter">
<path d='M735.1,942.4 L735.1,16.7 '></path>
</g>
<g style="fill:none; color:black; stroke:currentColor; stroke-width:1.00; stroke-linecap:butt; stroke-linejoin:miter">
<path d='M735.1,942.4 L735.1,933.4 M735.1,16.7 L735.1,25.7 '></path>
<g transform="translate(735.1,964.9)" style="stroke:none; fill:black; font-family:Arial; font-size:12.00pt; text-anchor:middle">
<text><tspan> 11000</tspan>
</text>
</g>
</g>
<g style="fill:none; color:gray; stroke:currentColor; stroke-width:1.00; stroke-linecap:butt; stroke-linejoin:miter">
<path d='M795.4,942.4 L795.4,16.7 '></path>
</g>
<g style="fill:none; color:black; stroke:currentColor; stroke-width:1.00; stroke-linecap:butt; stroke-linejoin:miter">
<path d='M795.4,942.4 L795.4,933.4 M795.4,16.7 L795.4,25.7 '></path>
<g transform="translate(795.4,964.9)" style="stroke:none; fill:black; font-family:Arial; font-size:12.00pt; text-anchor:middle">
<text><tspan> 12000</tspan>
</text>
</g>
</g>
<g style="fill:none; color:gray; stroke:currentColor; stroke-width:1.00; stroke-linecap:butt; stroke-linejoin:miter">
<path d='M855.6,942.4 L855.6,16.7 '></path>
</g>
<g style="fill:none; color:black; stroke:currentColor; stroke-width:1.00; stroke-linecap:butt; stroke-linejoin:miter">
<path d='M855.6,942.4 L855.6,933.4 M855.6,16.7 L855.6,25.7 '></path>
<g transform="translate(855.6,964.9)" style="stroke:none; fill:black; font-family:Arial; font-size:12.00pt; text-anchor:middle">
<text><tspan> 13000</tspan>
</text>
</g>
</g>
<g style="fill:none; color:gray; stroke:currentColor; stroke-width:1.00; stroke-linecap:butt; stroke-linejoin:miter">
<path d='M915.9,942.4 L915.9,16.7 '></path>
</g>
<g style="fill:none; color:black; stroke:currentColor; stroke-width:1.00; stroke-linecap:butt; stroke-linejoin:miter">
<path d='M915.9,942.4 L915.9,933.4 M915.9,16.7 L915.9,25.7 '></path>
<g transform="translate(915.9,964.9)" style="stroke:none; fill:black; font-family:Arial; font-size:12.00pt; text-anchor:middle">
<text><tspan> 14000</tspan>
</text>
</g>
</g>
<g style="fill:none; color:gray; stroke:currentColor; stroke-width:1.00; stroke-linecap:butt; stroke-linejoin:miter">
<path d='M976.2,942.4 L976.2,16.7 '></path>
</g>
<g style="fill:none; color:black; stroke:currentColor; stroke-width:1.00; stroke-linecap:butt; stroke-linejoin:miter">
<path d='M976.2,942.4 L976.2,933.4 M976.2,16.7 L976.2,25.7 '></path>
<g transform="translate(976.2,964.9)" style="stroke:none; fill:black; font-family:Arial; font-size:12.00pt; text-anchor:middle">
<text><tspan> 15000</tspan>
</text>
</g>
</g>
<g style="fill:none; color:gray; stroke:currentColor; stroke-width:1.00; stroke-linecap:butt; stroke-linejoin:miter">
<path d='M1036.5,942.4 L1036.5,16.7 '></path>
</g>
<g style="fill:none; color:black; stroke:currentColor; stroke-width:1.00; stroke-linecap:butt; stroke-linejoin:miter">
<path d='M1036.5,942.4 L1036.5,933.4 M1036.5,16.7 L1036.5,25.7 '></path>
<g transform="translate(1036.5,964.9)" style="stroke:none; fill:black; font-family:Arial; font-size:12.00pt; text-anchor:middle">
<text><tspan> 16000</tspan>
</text>
</g>
</g>
<g style="fill:none; color:gray; stroke:currentColor; stroke-width:1.00; stroke-linecap:butt; stroke-linejoin:miter">
<path d='M1096.8,942.4 L1096.8,16.7 '></path>
</g>
<g style="fill:none; color:black; stroke:currentColor; stroke-width:1.00; stroke-linecap:butt; stroke-linejoin:miter">
<path d='M1096.8,942.4 L1096.8,933.4 M1096.8,16.7 L1096.8,25.7 '></path>
<g transform="translate(1096.8,964.9)" style="stroke:none; fill:black; font-family:Arial; font-size:12.00pt; text-anchor:middle">
<text><tspan> 17000</tspan>
</text>
</g>
</g>
<g style="fill:none; color:gray; stroke:currentColor; stroke-width:1.00; stroke-linecap:butt; stroke-linejoin:miter">
<path d='M1157.1,942.4 L1157.1,16.7 '></path>
</g>
<g style="fill:none; color:black; stroke:currentColor; stroke-width:1.00; stroke-linecap:butt; stroke-linejoin:miter">
<path d='M1157.1,942.4 L1157.1,933.4 M1157.1,16.7 L1157.1,25.7 '></path>
<g transform="translate(1157.1,964.9)" style="stroke:none; fill:black; font-family:Arial; font-size:12.00pt; text-anchor:middle">
<text><tspan> 18000</tspan>
</text>
</g>
</g>
<g style="fill:none; color:gray; stroke:currentColor; stroke-width:1.00; stroke-linecap:butt; stroke-linejoin:miter">
<path d='M1217.4,942.4 L1217.4,16.7 '></path>
</g>
<g style="fill:none; color:black; stroke:currentColor; stroke-width:1.00; stroke-linecap:butt; stroke-linejoin:miter">
<path d='M1217.4,942.4 L1217.4,933.4 M1217.4,16.7 L1217.4,25.7 '></path>
<g transform="translate(1217.4,964.9)" style="stroke:none; fill:black; font-family:Arial; font-size:12.00pt; text-anchor:middle">
<text><tspan> 19000</tspan>
</text>
</g>
</g>
<g style="fill:none; color:gray; stroke:currentColor; stroke-width:1.00; stroke-linecap:butt; stroke-linejoin:miter">
<path d='M1277.7,942.4 L1277.7,16.7 '></path>
</g>
<g style="fill:none; color:black; stroke:currentColor; stroke-width:1.00; stroke-linecap:butt; stroke-linejoin:miter">
<path d='M1277.7,942.4 L1277.7,933.4 M1277.7,16.7 L1277.7,25.7 '></path>
<g transform="translate(1277.7,964.9)" style="stroke:none; fill:black; font-family:Arial; font-size:12.00pt; text-anchor:middle">
<text><tspan> 20000</tspan>
</text>
</g>
</g>
<g style="fill:none; color:gray; stroke:currentColor; stroke-width:1.00; stroke-linecap:butt; stroke-linejoin:miter">
<path d='M1337.9,942.4 L1337.9,43.7 M1337.9,25.7 L1337.9,16.7 '></path>
</g>
<g style="fill:none; color:black; stroke:currentColor; stroke-width:1.00; stroke-linecap:butt; stroke-linejoin:miter">
<path d='M1337.9,942.4 L1337.9,933.4 M1337.9,16.7 L1337.9,25.7 '></path>
<g transform="translate(1337.9,964.9)" style="stroke:none; fill:black; font-family:Arial; font-size:12.00pt; text-anchor:middle">
<text><tspan> 21000</tspan>
</text>
</g>
</g>
<g style="fill:none; color:gray; stroke:currentColor; stroke-width:1.00; stroke-linecap:butt; stroke-linejoin:miter">
<path d='M1398.2,942.4 L1398.2,43.7 M1398.2,25.7 L1398.2,16.7 '></path>
</g>
<g style="fill:none; color:black; stroke:currentColor; stroke-width:1.00; stroke-linecap:butt; stroke-linejoin:miter">
<path d='M1398.2,942.4 L1398.2,933.4 M1398.2,16.7 L1398.2,25.7 '></path>
<g transform="translate(1398.2,964.9)" style="stroke:none; fill:black; font-family:Arial; font-size:12.00pt; text-anchor:middle">
<text><tspan> 22000</tspan>
</text>
</g>
</g>
<g style="fill:none; color:gray; stroke:currentColor; stroke-width:1.00; stroke-linecap:butt; stroke-linejoin:miter">
<path d='M1458.5,942.4 L1458.5,43.7 M1458.5,25.7 L1458.5,16.7 '></path>
</g>
<g style="fill:none; color:black; stroke:currentColor; stroke-width:1.00; stroke-linecap:butt; stroke-linejoin:miter">
<path d='M1458.5,942.4 L1458.5,933.4 M1458.5,16.7 L1458.5,25.7 '></path>
<g transform="translate(1458.5,964.9)" style="stroke:none; fill:black; font-family:Arial; font-size:12.00pt; text-anchor:middle">
<text><tspan> 23000</tspan>
</text>
</g>
</g>
<g style="fill:none; color:gray; stroke:currentColor; stroke-width:1.00; stroke-linecap:butt; stroke-linejoin:miter">
<path d='M1518.8,942.4 L1518.8,43.7 M1518.8,25.7 L1518.8,16.7 '></path>
</g>
<g style="fill:none; color:black; stroke:currentColor; stroke-width:1.00; stroke-linecap:butt; stroke-linejoin:miter">
<path d='M1518.8,942.4 L1518.8,933.4 M1518.8,16.7 L1518.8,25.7 '></path>
<g transform="translate(1518.8,964.9)" style="stroke:none; fill:black; font-family:Arial; font-size:12.00pt; text-anchor:middle">
<text><tspan> 24000</tspan>
</text>
</g>
</g>
<g style="fill:none; color:gray; stroke:currentColor; stroke-width:1.00; stroke-linecap:butt; stroke-linejoin:miter">
<path d='M1579.1,942.4 L1579.1,16.7 '></path>
</g>
<g style="fill:none; color:black; stroke:currentColor; stroke-width:1.00; stroke-linecap:butt; stroke-linejoin:miter">
<path d='M1579.1,942.4 L1579.1,933.4 M1579.1,16.7 L1579.1,25.7 '></path>
<g transform="translate(1579.1,964.9)" style="stroke:none; fill:black; font-family:Arial; font-size:12.00pt; text-anchor:middle">
<text><tspan> 25000</tspan>
</text>
</g>
<path d='M71.9,16.7 L71.9,942.4 L1579.1,942.4 L1579.1,16.7 L71.9,16.7 Z '></path>
<g transform="translate(25.9,479.6) rotate(270)" style="stroke:none; fill:black; font-family:Arial; font-size:12.00pt; text-anchor:middle">
<text><tspan>Eklipsendauer [min]</tspan>
</text>
</g>
<g transform="translate(825.5,991.9)" style="stroke:none; fill:black; font-family:Arial; font-size:12.00pt; text-anchor:middle">
<text><tspan>Bahnhöhe [km]</tspan>
</text>
</g>
</g>
<a xlink:title="Plot #1">
<g style="fill:none; color:red; stroke:currentColor; stroke-width:1.00; stroke-linecap:butt; stroke-linejoin:miter">
<g transform="translate(1512.0,39.2)" style="stroke:none; fill:black; font-family:Arial; font-size:12.00pt; text-anchor:end">
<text><tspan>Dauer der Abschattung</tspan>
</text>
</g>
<path d='M1520.3,34.7 L1562.5,34.7 M102.3,392.0 L117.6,400.4 L132.8,404.4 L148.0,406.0 L163.2,405.9 L178.5,404.6
L193.7,402.6 L208.9,399.9 L224.1,396.8 L239.4,393.3 L254.6,389.5 L269.8,385.5 L285.0,381.3 L300.3,377.0
L315.5,372.6 L330.7,368.0 L345.9,363.4 L361.2,358.8 L376.4,354.0 L391.6,349.3 L406.8,344.5 L422.1,339.7
L437.3,334.9 L452.5,330.1 L467.7,325.2 L483.0,320.4 L498.2,315.6 L513.4,310.7 L528.6,305.9 L543.9,301.1
L559.1,296.3 L574.3,291.5 L589.5,286.8 L604.7,282.0 L620.0,277.3 L635.2,272.6 L650.4,267.9 L665.6,263.2
L680.9,258.5 L696.1,253.9 L711.3,249.2 L726.5,244.6 L741.8,240.1 L757.0,235.5 L772.2,230.9 L787.4,226.4
L802.7,221.9 L817.9,217.4 L833.1,213.0 L848.3,208.5 L863.6,204.1 L878.8,199.7 L894.0,195.3 L909.2,191.0
L924.5,186.6 L939.7,182.3 L954.9,178.0 L970.1,173.7 L985.4,169.5 L1000.6,165.2 L1015.8,161.0 L1031.0,156.8
L1046.3,152.6 L1061.5,148.5 L1076.7,144.3 L1091.9,140.2 L1107.1,136.1 L1122.4,132.0 L1137.6,127.9 L1152.8,123.8
L1168.0,119.8 L1183.3,115.8 L1198.5,111.8 L1213.7,107.8 L1228.9,103.8 L1244.2,99.9 L1259.4,95.9 L1274.6,92.0
L1289.8,88.1 L1305.1,84.2 L1320.3,80.3 L1335.5,76.5 L1350.7,72.6 L1366.0,68.8 L1381.2,65.0 L1396.4,61.2
'></path>
</g>
</a>
<g style="fill:none; color:black; stroke:currentColor; stroke-width:1.00; stroke-linecap:butt; stroke-linejoin:miter">
<path d='M71.9,16.7 L71.9,942.4 L1579.1,942.4 L1579.1,16.7 L71.9,16.7 Z '></path>
</g>
</svg>
Und hier das Resultat: (konvertiert zu einem png, sonst nimmt es das Forum nicht ... XIN ? )
Eklipsendauer.png
Wen es interessiert: Das Diagramm zeigt die Eklipsendauer auf einer kreisförmigen Bahn (um die Erde), die in der Ekliptik liegt, abhängig von ihrer Bahnhöhe. Die Eklipsendauer ist die Zeit, die z.B. ein Satellit im (Erd-) Schatten verbringt.

Re: svg rendern

Verfasst: So Dez 12, 2010 12:41 pm
von Xin
gucky hat geschrieben:ich wollte mal fragen ob schonmal jemand svg bilder gerendert hat und eine gute lib dafür hat. ich hab antigrain gefunden, finde aber kein beispiel wo mal gezeigt wird, wie man es benutzen kann. weiß vlt einer etw. gutes???
Ich habe mal automatisiert SVG Grafiken mit JavaScript erstellt und später mal mit InkScape.

Auf meiner Website findest Du einige Links, die ich damals benutzt habe. Was davon noch funktioniert... weiß ich nicht.
gucky hat geschrieben:achso, ich möchte es in einer datei rendern, aber ich will das es sofort in ein anderes gängiges bildformat umgewandelt wird, das man ohne probleme dann überall öffnen kann, bzw. ich möchte es nur convertieren
SVG ist ein gängiges Bildformat!?

Re: svg rendern

Verfasst: So Dez 12, 2010 1:08 pm
von MoonGuy
Xin hat geschrieben:
gucky hat geschrieben:achso, ich möchte es in einer datei rendern, aber ich will das es sofort in ein anderes gängiges bildformat umgewandelt wird, das man ohne probleme dann überall öffnen kann, bzw. ich möchte es nur convertieren
SVG ist ein gängiges Bildformat!?
Glaube er möchte von SVG in ein anderes Bildformat, welcher gängiger ist.

Re: svg rendern

Verfasst: So Dez 12, 2010 1:32 pm
von cloidnerux
SVG ist ein gängiges Bildformat!?
Ja. Wikipedia nutzt es für sehr viele Grafiken.

Re: svg rendern

Verfasst: So Dez 12, 2010 1:41 pm
von Xin
cloidnerux hat geschrieben:
SVG ist ein gängiges Bildformat!?
Ja. Wikipedia nutzt es für sehr viele Grafiken.
Da war erst ein Ausrufezeichen.

SVG ist ein gängiges Bildformat!

Das Fragezeichen heißt soviel wie... wie kommst Du darauf, dass es das nicht wäre. ^^

Re: svg rendern

Verfasst: So Dez 12, 2010 3:40 pm
von gucky
ich meine, windows kann standartmäßig keine svg grafiken öffnen