'; } function svgRectangle (&$image, $x1, $y1, $x2, $y2, $color = 'black', $fill = false, $opacity = false, $fillOpacity = 0) { $x = min ($x1, $x2); $y = min ($y1, $y2); $width = abs ($x2 - $x1) + 1; $height = abs ($y2 - $y1) + 1; $image .= "\n"; } function svgLine (&$image, $x1, $y1, $x2, $y2, $color = 'black') { $image .= "\n"; } function svgPolyline (&$image, $xArray, $yArray, $color = 'black') { $points = ''; $n = min (sizeof ($xArray), sizeof ($yArray)); //$path = ''; for ($i = 0; $i < $n; $i++) { if ($i > 0) { $points .= ' '; //$path .= ' L'; //} else { //$path .= 'M'; } $points .= $xArray[$i] . ',' . $yArray[$i]; //$path .= $xArray[$i] . ',' . $yArray[$i]; } $image .= "\n"; //$image .= "\n"; } function svgText (&$image, $text, $x, $y, $color = 'black') { $image .= "$text\n"; } function svgSend (&$image) { $image .= "\n"; header ("Content-Type: image/svg+xml"); print ($image); }