函数不适用于创建映像


Function is not working with create image

我们可以使用文本参数调用图像字符串中的函数吗?

imagestring($im, 5, 5, 5,  **$graph->createGraph()**, $text_color)

将函数输出的图像创建为数据的另一种方法?

检查这个

<?php
header("Content-Type: image/png");
$im = @imagecreate(110, 20)
    or die("Cannot Initialize new GD image stream");
$background_color = imagecolorallocate($im, 0, 0, 0);
$text_color = imagecolorallocate($im, 233, 14, 91);
imagestring($im, 1, 5, 5,  "A Simple Text String", $text_color);
imagepng($im);
imagedestroy($im);
?>