PHP处理图像问题~怎么就那个imagettftext函数输出的函数会挂的?
<?php$iz=imagecreatetruecolor(300,100);$red=imagecolorallocate($iz,255,0,0);//imagefi...
<?php
$iz=imagecreatetruecolor(300,100);
$red=imagecolorallocate($iz,255,0,0);
//imagefilledrectangle($iz,0,0,199,99);
$text=iconv("GB2312","utf-8","abcd");
$font='simsun.ttc';
imagettftext($iz,20,0,100,50,$red,$font,$text);
//imagestring($iz,5,10,10,'abcd',$red);
imagesetpixel($iz,10,10,$red);
header("Content-type:image/png");
imagepng($iz); 展开
$iz=imagecreatetruecolor(300,100);
$red=imagecolorallocate($iz,255,0,0);
//imagefilledrectangle($iz,0,0,199,99);
$text=iconv("GB2312","utf-8","abcd");
$font='simsun.ttc';
imagettftext($iz,20,0,100,50,$red,$font,$text);
//imagestring($iz,5,10,10,'abcd',$red);
imagesetpixel($iz,10,10,$red);
header("Content-type:image/png");
imagepng($iz); 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询