drawLine() 공개 메소드

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
리턴 Gd
예제 #1
0
 public function testAddLine()
 {
     $i = new Gd(__DIR__ . '/../tmp/test.jpg');
     $i->drawLine(10, 10, 100, 100);
     $this->assertEquals(640, $i->getWidth());
 }