You are here

public static function PHPExcel_Shared_Drawing::pointsToPixels in Loft Data Grids 6.2

Same name and namespace in other branches
  1. 7.2 vendor/phpoffice/phpexcel/Classes/PHPExcel/Shared/Drawing.php \PHPExcel_Shared_Drawing::pointsToPixels()

* Convert points to pixels * *

Parameters

int $pValue Value in points: * @return int Value in pixels

1 call to PHPExcel_Shared_Drawing::pointsToPixels()
PHPExcel_Shared_Excel5::sizeRow in vendor/phpoffice/phpexcel/Classes/PHPExcel/Shared/Excel5.php
* Convert the height of a cell from user's units to pixels. By interpolation * the relationship is: y = 4/3x. If the height hasn't been set by the user we * use the default value. If the row is hidden we use a value of zero. * *

File

vendor/phpoffice/phpexcel/Classes/PHPExcel/Shared/Drawing.php, line 140

Class

PHPExcel_Shared_Drawing
PHPExcel_Shared_Drawing

Code

public static function pointsToPixels($pValue = 0) {
  if ($pValue != 0) {
    return (int) ceil($pValue * 1.333333333);
  }
  else {
    return 0;
  }
}