$dst_path = './1.png';
$font_file = './ADOBEHEITISTD-REGULAR (V5.010).OTF';
$img_bg = imagecreatefrompng($dst_path); //打开图片,
$bg_width = imagesx($img_bg);
$clr = ImageColorAllocate($img_bg, 0xFF,0xFF,0xFF);//这个值手册说必须通过create 图片才能写

imagettftext($img_bg, 20, 0, 90, 150, 255, $font_file, '669');//255 为颜色标识符

// HTTP/1.0
header('Pragma: no-cache');
header('Content-type: image/png');
imagepng($img_bg);
imagedestroy($img_bg);

  

相关文章:

  • 2021-09-14
  • 2021-08-11
  • 2021-11-19
  • 2021-12-02
  • 2021-11-19
  • 2021-12-13
  • 2021-11-01
  • 2021-12-07
猜你喜欢
  • 2021-08-17
  • 2021-07-31
  • 2021-11-19
  • 2021-11-19
  • 2021-12-02
  • 2022-12-23
相关资源
相似解决方案