function pImage::setFontProperties

5.x pImage.class.php pImage::setFontProperties($Format = "")

File

inc/pchart/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;
  }
}