You are here

function pImage::stroke in Visitors 7

Same name and namespace in other branches
  1. 7.2 pChart/class/pImage.class.php \pImage::stroke()

File

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);
}