resize() public method

Resize the image object to the largest dimension
public resize ( integer | string $px ) : Gd
$px integer | string
return Gd
示例#1
0
 public function testResize()
 {
     $i = new Gd(__DIR__ . '/../tmp/test.jpg');
     $i->resize(240);
     $this->assertEquals(240, $i->getWidth());
 }