drawLine() public method

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