title: polyline auto-closes - how to draw an open polyline?
body: <p>I'm in need of drawing continuous lines in PHP. GD apparently can't do it, but imagick has a polyline function. Now my test code:</p>
  
  <pre><code>$image = new Imagick();
  $image-&gt;newImage(100, 100, new ImagickPixel('white'));
  $draw = new ImagickDraw();
  $draw-&gt;setStrokeWidth(3);
  $line = array(
      array('x'=&gt;10, 'y'=&gt;10),
      array('x'=&gt;50, 'y'=&gt;10),
      array('x'=&gt;70, 'y'=&gt;40),
      array('x'=&gt;30, 'y'=&gt;60),
  );
  $draw-&gt;polyline($line);
  $image-&gt;drawImage($draw);
  $image-&gt;setImageFormat('jpg');
  $image-&gt;writeImage("test.jpg");
  </code></pre>
  
  <p>produces a CLOSED (and filled) polygon for reasons I can't fathom. What's going on here and how do I fix it? I want it to stop at the last point and NOT close or fill.</p>
  
  <p>If there's a solution in GD, I'm also happy. No, I can't simply string individual lines together, because I want thickness in the lines.</p>