drawSquare() public method

Method to add a square to the image.
public drawSquare ( integer $x, integer $y, integer $w ) : Imagick
$x integer
$y integer
$w integer
return Imagick
コード例 #1
0
ファイル: ImagickTest.php プロジェクト: nicksagona/PopPHP
 public function testAddSquare()
 {
     $i = new Imagick(__DIR__ . '/../tmp/test.jpg');
     $i->drawSquare(10, 10, 100);
     $this->assertEquals(640, $i->getWidth());
 }