/** * Gets the fill style of the element * * @param int $ID Fill style ID * * @return int A GD filestyle representing the fill style * @see Image_Graph_Fill * @access private */ function _getFillStyle($ID = false) { if (is_object($this->_fillStyle)) { $this->_canvas->setFill($this->_fillStyle->_getFillStyle($ID)); } elseif ($this->_fillStyle != null) { $this->_canvas->setFill($this->_fillStyle); } else { return false; } return true; }
/** * Gets the fill style of the element * @return int A GD filestyle representing the fill style * @see Image_Graph_Fill * @access private */ function _getFillStyle($ID = false) { $this->_debug("Getting fill style"); if ($this->_fillStyle != null) { if (is_numeric($this->_fillStyle)) { return $this->_color($this->_fillStyle); } elseif (is_a($this->_fillStyle, "Image_Graph_Color")) { return $this->_fillStyle->_index; } else { return $this->_fillStyle->_getFillStyle($ID); } } else { return $this->_color(IMAGE_GRAPH_TRANSPARENT); } }