crop() public method

Crop the image object to a image
public crop ( integer | string $wid, integer | string $hgt, integer | string $x, integer | string $y ) : mixed
$wid integer | string
$hgt integer | string
$x integer | string
$y integer | string
return mixed
コード例 #1
0
ファイル: ImagickTest.php プロジェクト: nicksagona/PopPHP
 public function testCrop()
 {
     $i = new Imagick(__DIR__ . '/../tmp/test.jpg');
     $i->crop(100, 50);
     $this->assertEquals(100, $i->getWidth());
 }