protected static function PHPExcel_Reader_Excel2003XML::_widthUnits2Pixel in Loft Data Grids 6.2
Same name and namespace in other branches
- 7.2 vendor/phpoffice/phpexcel/Classes/PHPExcel/Reader/Excel2003XML.php \PHPExcel_Reader_Excel2003XML::_widthUnits2Pixel()
* excel width units(units of 1/256th of a character width) to pixel units *
Parameters
widthUnits: * @return
File
- vendor/
phpoffice/ phpexcel/ Classes/ PHPExcel/ Reader/ Excel2003XML.php, line 273
Class
- PHPExcel_Reader_Excel2003XML
- PHPExcel_Reader_Excel2003XML
Code
protected static function _widthUnits2Pixel($widthUnits) {
$pixels = $widthUnits / 256 * 7;
$offsetWidthUnits = $widthUnits % 256;
$pixels += round($offsetWidthUnits / (256 / 7));
return $pixels;
}