You are here

function pChart::pChart in Visitors 7.0

Same name and namespace in other branches
  1. 8 pchart/pChart.inc \pChart::pChart()

File

pchart/pChart.inc, line 147

Class

pChart

Code

function pChart($XSize, $YSize) {
  $this->XSize = $XSize;
  $this->YSize = $YSize;
  $this->Picture = imagecreatetruecolor($XSize, $YSize);
  $C_White = imagecolorallocate($this->Picture, 255, 255, 255);
  imagefilledrectangle($this->Picture, 0, 0, $XSize, $YSize, $C_White);
  imagecolortransparent($this->Picture, $C_White);
  $this
    ->setFontProperties("tahoma.ttf", 8);
}