function pImage::stroke

5.x pImage.class.php pImage::stroke($BrowserExpire = FALSE)

File

inc/pchart/pchart/class/pImage.class.php, line 155

Class

pImage

Code

function stroke($BrowserExpire = FALSE) 
 {
  if ($this->TransparentBackground) {
    imagealphablending($this->Picture, false);
    imagesavealpha($this->Picture, true);
  }

  if ($BrowserExpire) 
   {
    header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
    header("Cache-Control: no-cache");
    header("Pragma: no-cache");
  }

  header('Content-type: image/png');
  imagepng($this->Picture);
}