45                return round($pValue * 9525);
 
   56                        return round($pValue / 9525);
 
   84                        $colWidth = $pValue * 11
 
  113                        $colWidth = $pValue * 
$size 
  119                $colWidth = (int) round($colWidth);
 
  131                return $pValue * 0.67777777;
 
  142                        return (
int) ceil($pValue * 1.333333333);
 
  155                return (
int)round($pValue * 60000);
 
  166                        return round($pValue / 60000);
 
  182        $file    =    fopen($p_sFile,
"rb");
 
  183        $read    =    fread(
$file,10);
 
  184        while(!feof(
$file)&&($read<>
""))
 
  185            $read    .=    fread(
$file,1024);
 
  187        $temp    =    unpack(
"H*",$read);
 
  193        if (substr(
$header,0,4)==
"424d")
 
  196            $header_parts    =    str_split(
$header,2);
 
  199            $width            =    hexdec($header_parts[19].$header_parts[18]);
 
  202            $height            =    hexdec($header_parts[23].$header_parts[22]);
 
  205            unset($header_parts);
 
  213        $image            =    imagecreatetruecolor($width,$height);
 
  216        $body            =    substr($hex,108);
 
  221        $body_size        =    (strlen($body)/2);
 
  222        $header_size    =    ($width*$height);
 
  225        $usePadding        =    ($body_size>($header_size*3)+4);
 
  229        for (
$i=0;
$i<$body_size;
$i+=3)
 
  253            $r        =    hexdec($body[$i_pos+4].$body[$i_pos+5]);
 
  254            $g        =    hexdec($body[$i_pos+2].$body[$i_pos+3]);
 
  255            $b        =    hexdec($body[$i_pos].$body[$i_pos+1]);
 
  258            $color    =    imagecolorallocate($image,
$r,$g,$b);
 
  259            imagesetpixel($image,
$x,$height-
$y,$color);
 
An exception for terminatinating execution or to throw for unit testing.
static pixelsToCellDimension($pValue=0, PHPExcel_Style_Font $pDefaultFont)
Convert pixels to column width.
static EMUToPixels($pValue=0)
Convert EMU to pixels.
static degreesToAngle($pValue=0)
Convert degrees to angle.
static imagecreatefrombmp($p_sFile)
Create a new image from file.
static cellDimensionToPixels($pValue=0, PHPExcel_Style_Font $pDefaultFont)
Convert column width from (intrinsic) Excel units to pixels.
static pixelsToEMU($pValue=0)
Convert pixels to EMU.
static pixelsToPoints($pValue=0)
Convert pixels to points.
static angleToDegrees($pValue=0)
Convert angle to degrees.
static pointsToPixels($pValue=0)
Convert points to pixels.
static $defaultColumnWidths
if(!file_exists("$old.txt")) if( $old===$new) if(file_exists("$new.txt")) $file