ManaPHP\Image::scaleFixedHeight PHP Метод

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

Scale the image by a given height
public scaleFixedHeight ( integer $height ) : static
$height integer
Результат 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;
    }