function pDraw::getPicInfo

5.x pDraw.class.php pDraw::getPicInfo($FileName)
4 calls to pDraw::getPicInfo()
pDraw::drawFromPicture in inc/pchart/pchart/class/pDraw.class.php
pDraw::drawLegend in inc/pchart/pchart/class/pDraw.class.php
pDraw::drawPlotChart in inc/pchart/pchart/class/pDraw.class.php
pDraw::getLegendSize in inc/pchart/pchart/class/pDraw.class.php

File

inc/pchart/pchart/class/pDraw.class.php, line 1219

Class

pDraw

Code

function getPicInfo($FileName) 
 {
  $Infos = getimagesize($FileName);
  $Width = $Infos [0];
  $Height = $Infos [1];
  $Type = $Infos ["mime"];

  if ($Type == "image/png") {
    $Type = 1;
  }
  if ($Type == "image/gif") {
    $Type = 2;
  }
  if ($Type == "image/jpeg ") {
    $Type = 3;
  }

  return (array($Width, $Height, $Type));
}