You are here

function pImage::setShadow in Visitors 7.2

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

File

pChart/class/pImage.class.php, line 110

Class

pImage

Code

function setShadow($Enabled = TRUE, $Format = "") {
  $X = isset($Format["X"]) ? $Format["X"] : 2;
  $Y = isset($Format["Y"]) ? $Format["Y"] : 2;
  $R = isset($Format["R"]) ? $Format["R"] : 0;
  $G = isset($Format["G"]) ? $Format["G"] : 0;
  $B = isset($Format["B"]) ? $Format["B"] : 0;
  $Alpha = isset($Format["Alpha"]) ? $Format["Alpha"] : 10;
  $this->Shadow = $Enabled;
  $this->ShadowX = $X;
  $this->ShadowY = $Y;
  $this->ShadowR = $R;
  $this->ShadowG = $G;
  $this->ShadowB = $B;
  $this->Shadowa = $Alpha;
}