skip2 / go-qrcode

:sparkles: QR Code encoder (Go)
http://go-qrcode.appspot.com
MIT License
2.64k stars 338 forks source link

Can I just get the matrix? I want to print it to the console / 可以直接拿到矩阵吗,我想打印到控制台 #46

Closed kirito41dd closed 3 years ago

kirito41dd commented 3 years ago

Can I just get the matrix? I want to print it to the console / 可以直接拿到矩阵吗,我想打印到控制台 thanks / 谢谢

benjamin-rood commented 3 years ago

Yes, use the Bitmap method on the encoded PNG byte array.

https://pkg.go.dev/github.com/skip2/go-qrcode#QRCode.Bitmap