(写 TTF 文字到图中) ImageTTFText - PHP

<?php  
  
Header("Content-type: image/gif");  
  
$im = imagecreate(400,30);  
$black = ImageColorAllocate($im, 0,0,0);  
$white = ImageColorAllocate($im, 255,255,255);  
ImageTTFText($im, 20, 0, 10, 20, $white, "./arial.ttf", "I am NUMBER ONE !!");  
ImageGif($im);  
ImageDestroy($im);  
  
  
  
  
?>  

  http://blog.csdn.net/smstong/article/details/43955705

posted @ 2018-03-15 09:32  西风行  阅读(178)  评论(0编辑  收藏  举报