Warning: is_dir(): open_basedir restriction in effect. File(/www/wwwroot/9091.cn/wp-content/plugins/wpdiscuz/themes/default) is not within the allowed path(s): (/vol3/1000/HD3/www/wwwroot/9091.cn/:/tmp/) in /vol3/1000/HD3/www/wwwroot/9091.cn/wp-content/plugins/wpdiscuz/forms/wpdFormAttr/Form.php on line 146

c#.用QRCoder包快速生成二维码并向图片写入文字调整位置

.NetCore——QRCoder生成二维码

一、开始
本文使用QRCoder实现生成二维码,并且在空白区域放入自定义文字。
引入QRCoder包
在这里插入图片描述
具体实现如下
代码中一些参数等问题,均通过注释体现

下图为实现效果
在这里插入图片描述
可以从结果中看出 符合我们代码的逻辑。空白区域,间距,文字,文字换行,文字居中。

在Linux中需要执行sudo apt-get install libgdiplus下载安装libgdiplus库

100T高转存免费网盘资源精选【持续更中~~~~】:点击查看

0 0 投票
文章评级
订阅
提醒
guest
0 评论
内线反馈
查看所有评论
0
希望你的想法,请评论。x