+ -
当前位置:首页 → 问答吧 → zendframework为什么GD库里面的这个imagecreatetruecolor方法调用不到了。。。求大家指定、、万分感谢、

zendframework为什么GD库里面的这个imagecreatetruecolor方法调用不到了。。。求大家指定、、万分感谢、

时间:2011-11-07

来源:互联网

zendframework为什么GD库里面的这个imagecreatetruecolor方法调用不到了。。。求大家指定、、万分感谢

作者: kevin_xiewen   发布时间: 2011-11-07

什么叫调用不到了。。除非调用错了

作者: ohmygirl   发布时间: 2011-11-07

本函数不能用于 GIF 文件格式。

作者: mengxiangbaidu   发布时间: 2011-11-07

header("Content-type: image/png");
$im = @imagecreatetruecolor(50, 100)
  or die("Cannot Initialize new GD image stream");
$text_color = imagecolorallocate($im, 233, 14, 91);
imagestring($im, 1, 5, 5, "A Simple Text String", $text_color);
imagepng($im);
imagedestroy($im);

作者: mengxiangbaidu   发布时间: 2011-11-07

而且GD库的版本必须在2.之上,否则不支持

作者: ohmygirl   发布时间: 2011-11-07

就是说,我在zendfarmework里面有Libchart这个插件绘制柱状图形。。。。但不能在页面上把图片显示出来。。文件关联的路径都没问题 但插件Plot.php,这个类里面调用的imagecreatetruecolor无效,至少上面各位的回答我之前都有排除、、、、、纠纷中、、、、

作者: kevin_xiewen   发布时间: 2011-11-07

相关阅读 更多