如何pchart
在我的 HTML 页面上的特定位置获得一个?现在,当我按照示例并使用时
$myPicture->autoOutput();
它只会覆盖我的整个页面并仅显示图表。
查看我在相关函数中找到的pChart
源代码pImage.class.php
function stroke()
{
if ( $this->TransparentBackground ) { imagealphablending($this->Picture,false); imagesavealpha($this->Picture,true); }
header('Content-type: image/png');
imagepng($this->Picture);
}
我试图将其更改为此,但它似乎返回 null 并且我收到一堆关于
警告:imagettfbbox() [function.imagettfbbox]:**中的字体文件名无效
function stroke()
{
ob_start(NULL,4096);
$this->Picture;
header('Content-type: text/html');
return base64_encode(ob_get_clean();
}