crop() public method

Crop the image object
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
Ejemplo n.º 1
0
 public function testCrop()
 {
     $i = new Gd(__DIR__ . '/../tmp/test.jpg');
     $i->crop(100, 50);
     $this->assertEquals(100, $i->getWidth());
 }