今天仔细研究了下gd的一些相关技术,顺手也研究下gd中文乱码的问题。
使用gd库输出中文字符串,调用imagestring是没有用的。需要使用imagettftext()函数。imagettftext函数的具体使用就参考手册啦。
下面给个使用实例:
$pic=imagecreate(250,30);
$black=imagecolorallocate($pic,0,0,0);
$white=imagecolorallocate($pic,255,255,255);
$f>
以上就介绍了photoshop cs5 中文 解决gd中文乱码问题,包括了photoshop cs5 中文方面的内容,希望对php教程有兴趣的朋友有所帮助。