function pDraw::getPicInfo in Visitors 7
Same name and namespace in other branches
- 7.2 pChart/class/pDraw.class.php \pDraw::getPicInfo()
4 calls to pDraw::getPicInfo()
- pDraw::drawFromPicture in pChart/
class/ pDraw.class.php - pDraw::drawLegend in pChart/
class/ pDraw.class.php - pDraw::drawPlotChart in pChart/
class/ pDraw.class.php - pDraw::getLegendSize in pChart/
class/ pDraw.class.php
File
- pChart/
class/ pDraw.class.php, line 1219
Class
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,
);
}