You are here

public function PHPExcel_Worksheet_BaseDrawing::setHeight in Loft Data Grids 6.2

Same name and namespace in other branches
  1. 7.2 vendor/phpoffice/phpexcel/Classes/PHPExcel/Worksheet/BaseDrawing.php \PHPExcel_Worksheet_BaseDrawing::setHeight()

Set Height

Parameters

int $pValue:

Return value

PHPExcel_Worksheet_BaseDrawing

1 method overrides PHPExcel_Worksheet_BaseDrawing::setHeight()
PHPExcel_Worksheet_HeaderFooterDrawing::setHeight in vendor/phpoffice/phpexcel/Classes/PHPExcel/Worksheet/HeaderFooterDrawing.php
Set Height

File

vendor/phpoffice/phpexcel/Classes/PHPExcel/Worksheet/BaseDrawing.php, line 349

Class

PHPExcel_Worksheet_BaseDrawing
PHPExcel_Worksheet_BaseDrawing

Code

public function setHeight($pValue = 0) {

  // Resize proportional?
  if ($this->_resizeProportional && $pValue != 0) {
    $ratio = $this->_width / ($this->_height != 0 ? $this->_height : 1);
    $this->_width = round($ratio * $pValue);
  }

  // Set height
  $this->_height = $pValue;
  return $this;
}