PhpOffice\PhpPresentation\Shape\AbstractGraphic::setHeight PHP Method

setHeight() public method

Set Height
public setHeight ( integer $pValue ) : PhpOffice\PhpPresentation\Shape\AbstractDrawing
$pValue integer
return PhpOffice\PhpPresentation\Shape\AbstractDrawing
    public function setHeight($pValue = 0)
    {
        // Resize proportional?
        if ($this->resizeProportional && $pValue != 0) {
            $ratio = $this->width / $this->height;
            $this->width = (int) round($ratio * $pValue);
        }
        // Set height
        $this->height = $pValue;
        return $this;
    }