drawLine() public method

Method to add a line to the image.
public drawLine ( integer $x1, integer $y1, integer $x2, integer $y2 ) : Imagick
$x1 integer
$y1 integer
$x2 integer
$y2 integer
return Imagick
Esempio n. 1
0
 public function testAddLine()
 {
     $i = new Imagick(__DIR__ . '/../tmp/test.jpg');
     $i->drawLine(10, 10, 100, 100);
     $this->assertEquals(640, $i->getWidth());
 }