You are here

function pImage::setFontProperties in Visitors 7.2

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

File

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

Class

pImage

Code

function setFontProperties($Format = "") {
  $R = isset($Format["R"]) ? $Format["R"] : -1;
  $G = isset($Format["G"]) ? $Format["G"] : -1;
  $B = isset($Format["B"]) ? $Format["B"] : -1;
  $Alpha = isset($Format["Alpha"]) ? $Format["Alpha"] : 100;
  $FontName = isset($Format["FontName"]) ? $Format["FontName"] : NULL;
  $FontSize = isset($Format["FontSize"]) ? $Format["FontSize"] : NULL;
  if ($R != -1) {
    $this->FontColorR = $R;
  }
  if ($G != -1) {
    $this->FontColorG = $G;
  }
  if ($B != -1) {
    $this->FontColorB = $B;
  }
  if ($Alpha != NULL) {
    $this->FontColorA = $Alpha;
  }
  if ($FontName != NULL) {
    $this->FontName = $FontName;
  }
  if ($FontSize != NULL) {
    $this->FontSize = $FontSize;
  }
}