cropThumb() public method

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