コード例 #1
0
ファイル: panachart.php プロジェクト: armic/erpts
 function setLabels(&$labels, $textColor, $font, $direction)
 {
     $this->m_labels =& $labels;
     $vTextColor = _decode_color($textColor);
     $this->m_labelsTextColor = imagecolorallocate($this->m_image, $vTextColor[0], $vTextColor[1], $vTextColor[2]);
     $this->m_labelsFont = $font;
     $this->m_labelsFontWidth = imagefontwidth($font);
     $this->m_labelsFontHeight = imagefontheight($font);
     $this->m_labelsDirection = (int) $direction;
     $count = count($labels);
     if ($count < $this->m_minCount) {
         $this->m_minCount = $count;
     }
     if ($count > $this->m_maxCount) {
         $this->m_maxCount = $count;
     }
     $this->m_labelsMaxLength = _maxlen($labels);
 }
コード例 #2
0
ファイル: Chart.php プロジェクト: Code-Crew/Classroom-Booker
 function Series(&$chart, $chartType, &$values, $title, $style, $strokeColor, $fillColor)
 {
     $this->m_chart =& $chart;
     $this->m_type = $chartType;
     $this->m_style = (int) $style;
     $this->m_seriesTitle = $title;
     $this->m_values =& $values;
     $vStrokeColor = _decode_color($strokeColor);
     $vFillColor = _decode_color($fillColor);
     $this->m_strokeColor = imagecolorallocate($this->m_chart->m_image, $vStrokeColor[0], $vStrokeColor[1], $vStrokeColor[2]);
     $this->m_fillColor = imagecolorallocate($this->m_chart->m_image, $vFillColor[0], $vFillColor[1], $vFillColor[2]);
 }