一个键盘码代码,两只黄鹂名翠柳

使用GD库创建透明背景文字图片

利用GD库可以绘制透明背景的图片。具体代码如下。// 创建画布 $resImg = imagecreatetruecolor($arrOptions['width'], $arrOptions['height']); // 创建背景色,注意需要创建为透明背景,需要alpha为127 $intBgColor = imagecolorallocatealpha($resImg, 255, 0, 0, 127); // 字体颜色 $intFontColor = imagecolorallocate($resImg, $intRed, $intGreen, $ 查看全文
加载更多
php ( 6 )
index ( 5 )
redis ( 5 )
源码 ( 5 )
ssl ( 4 )
数据结构 ( 4 )
awk ( 3 )
http ( 3 )
hql ( 3 )
字体 ( 3 )
https ( 3 )
测试 ( 2 )
php:// ( 2 )
chrome ( 2 )
firefox ( 2 )
字符 ( 1 )
压测 ( 1 )
mysql ( 1 )