public function drawLine($x1, $y1, $x2, $y2)
{
$draw = new \ImagickDraw();
$draw->setStrokeColor($this->setColor($this->strokeColor));
$draw->setStrokeWidth(null === $this->strokeWidth ? 1 : $this->strokeWidth);
$draw->line($x1, $y1, $x2, $y2);
$this->resource->drawImage($draw);
return $this;
}