5 use \Intervention\Image\Image;
6 use \Intervention\Image\Imagick\Color;
24 $this->points = $this->formatPoints(
$points);
37 $polygon = new \ImagickDraw;
41 $polygon->setFillColor($bgcolor->getPixel());
46 $polygon->setStrokeWidth($this->border_width);
50 $polygon->polygon($this->points);
52 $image->
getCore()->drawImage($polygon);
63 private function formatPoints(
$points)
71 $ipoints[] = array(
'x' => $x,
'y' => $y);