Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/auula/qrcode-go
Golang genreate tool library of QrCode.
https://github.com/auula/qrcode-go
golang golang-library golang-package qrcode qrcode-generator
Last synced: about 2 months ago
JSON representation
Golang genreate tool library of QrCode.
- Host: GitHub
- URL: https://github.com/auula/qrcode-go
- Owner: auula
- License: mit
- Created: 2020-07-08T12:22:19.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-09-11T08:45:51.000Z (over 4 years ago)
- Last Synced: 2024-06-21T03:15:35.907Z (7 months ago)
- Topics: golang, golang-library, golang-package, qrcode, qrcode-generator
- Language: Go
- Homepage:
- Size: 969 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## 设置头像
```golang
qr.SetAvatar(&qrcode.Avatar{
Src: "../static/1.jpg",
Width: 60,
Height: 60,
Round: 10,
})
```## 设置背景图
```
qr.SetBackgroundImage(&qrcode.SetBackgroundImage{
Src: "../static/3.png",
X: 70,
Y: 55,
Width: 270,
Height: 270,
})
```## 设置前景图
```
qr.SetForegroundImage("../static/2.png")
```![image](https://github.com/lihaotian0607/qrcode/blob/master/resources/qr-avatar.png)
![image](https://github.com/lihaotian0607/qrcode/blob/master/resources/qr-bg.png)
![image](https://github.com/lihaotian0607/qrcode/blob/master/resources/qr-fg.png)
![image](https://github.com/lihaotian0607/qrcode/blob/master/resources/out.png)
![image](https://github.com/lihaotian0607/qrcode/blob/master/resources/20200510170738.png)
![image](https://github.com/lihaotian0607/qrcode/blob/master/resources/20200510170741.png)
![image](https://github.com/lihaotian0607/qrcode/blob/master/resources/20200510170755.png)
![image](https://github.com/lihaotian0607/qrcode/blob/master/resources/20200510170802.png)
![image](https://github.com/lihaotian0607/qrcode/blob/master/resources/20200510170810.png)
![image](https://github.com/lihaotian0607/qrcode/blob/master/resources/20200510170813.png)