cropThumb() 공개 메소드

Crop the image object to a square image
public cropThumb ( integer | string $px, integer | string $x, integer | string $y ) : Gd
$px integer | string
$x integer | string
$y integer | string
리턴 Gd
예제 #1
0
 public function testCropThumb()
 {
     $i = new Gd(__DIR__ . '/../tmp/test.jpg');
     $i->cropThumb(50);
     $this->assertEquals(50, $i->getWidth());
 }