您现在的位置:首页 > 博客 > PHP > 正文
phpqrcode.php生成透明背景二维码的方法
http://www.bbnsc.com/      2023/11/15 20:58:02      来源:贝恩斯网络·技术博客      点击:

    在 qrimage.php 中,插入以下行:

ImageColorTransparent($target_image, $col[0]);

    如下图:

    这将为您修复它.

ImageCopyResized($target_image, $base_image, 0, 0, 0, 0, $imgW * $pixelPerPoint, $imgH * $pixelPerPoint, $imgW, $imgH);
ImageColorTransparent($target_image, $col[0]);
ImageDestroy($base_image);
发表评论(0)
姓名
*
评论内容
*
验证码
*图片看不清?点击重新得到验证码