資源簡介
帶顏色和原生的代碼都提供了一份,直接用withcolor/phpqrcode.php覆蓋你的phpqrcode.php即可,你也可以比較一下兩個文件的改動,看看實現原理
代碼片段和文件信息
header(“content-type:text/html;charset=utf-8“);
require?‘phpqrcode.php‘;
$errorCorrectionLevel=‘H‘; //容錯級別
$matrixPointSize=10; //生成圖片大小
$qr_url=‘https://www.csdn.net‘;
QRcode::png($qr_url?‘csdn.png‘?$errorCorrectionLevel?$matrixPointSize?2false);
echo?“成功生成csdn.png到當前目錄下!二維碼顏色為黑色“;
echo?“
“;
?>
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件????????407??2018-05-12?08:41??original\index.php
?????文件?????121780??2018-05-12?08:15??original\phpqrcode.php
?????文件????????417??2018-05-12?08:41??withcolor\index.php
?????文件?????122877??2018-05-12?08:14??withcolor\phpqrcode.php
?????目錄??????????0??2018-05-12?08:43??original
?????目錄??????????0??2018-05-12?08:43??withcolor
-----------?---------??----------?-----??----
???????????????245481????????????????????6
評論
共有 條評論