function pChart::drawBackground in Visitors 8        
                          
                  
                        Same name and namespace in other branches
- 7.0 pchart/pChart.inc \pChart::drawBackground()
 
 
File
 
   - pchart/pChart.inc, line 2110
 
  
  Class
  
  - pChart 
 
  
Code
function drawBackground($R, $G, $B) {
  if ($R < 0) {
    $R = 0;
  }
  if ($R > 255) {
    $R = 255;
  }
  if ($G < 0) {
    $G = 0;
  }
  if ($G > 255) {
    $G = 255;
  }
  if ($B < 0) {
    $B = 0;
  }
  if ($B > 255) {
    $B = 255;
  }
  $C_Background = imagecolorallocate($this->Picture, $R, $G, $B);
  imagefilledrectangle($this->Picture, 0, 0, $this->XSize, $this->YSize, $C_Background);
}