foreach ($disjointPoints as $points) { $draw->bezier($points); }
//Create an image object which the draw commands can be rendered into $imagick = new \Imagick(); $imagick->newImage(500, 500, $backgroundColor); $imagick->setImageFormat("png");
//Render the draw commands in the ImagickDraw object //into the image. $imagick->drawImage($draw);
//Send the image to the browser header("Content-Type: image/png"); echo $imagick->getImageBlob(); }