resize() публичный Метод

public resize ( integer $width, integer $height ) : static
$width integer
$height integer
Результат static
Пример #1
0
 /**
  * Scale the image by a given height
  *
  * @param int $height
  *
  * @return static
  */
 public function scaleFixedHeight($height)
 {
     $_width = $this->adapter->getWidth();
     $_height = $this->adapter->getHeight();
     $width = (int) ($_width * $height / $_height);
     $this->adapter->resize($width, $height);
     return $this;
 }