<?php
$img = imagecreatetruecolor(100, 100);
$red = imagecolorallocate($img, 0x00, 0x00, 0xFF);
//在这里绘制文字
imagestring($img, 5, 0, 0, "Hello world", $red);
header("content-type: image/png");
imagepng($img);
imagedestroy($img);这个OK了!
<?php
$img = imagecreatetruecolor(100, 100);
$red = imagecolorallocate($img, 0x00, 0x00, 0xFF);
//在这里绘制文字
imagestring($img, 5, 0, 0, "Hello world", $red);
header("content-type: image/png");
imagepng($img);
imagedestroy($img);这个OK了!
2014-09-11
举报