drawSquare() public method

Method to add a square to the image.
public drawSquare ( integer $x, integer $y, integer $w ) : Gd
$x integer
$y integer
$w integer
return Gd
示例#1
0
 public function testAddSquare()
 {
     $i = new Gd(__DIR__ . '/../tmp/test.jpg');
     $i->drawSquare(10, 10, 100);
     $this->assertEquals(640, $i->getWidth());
 }