利用GD库可以绘制透明背景的图片。具体代码如下。// 创建画布
$resImg = imagecreatetruecolor($arrOptions['width'], $arrOptions['height']);
// 创建背景色,注意需要创建为透明背景,需要alpha为127
$intBgColor = imagecolorallocatealpha($resImg, 255, 0, 0, 127);
// 字体颜色
$intFontColor = imagecolorallocate($resImg, $intRed, $intGreen, $
查看全文