Bitmap returns the QR Code as a 2D array of 1-bit pixels. bitmap[y][x] is true if the pixel at (x, y) is set. The bitmap includes the required "quiet zone" around the QR Code to aid decoding.
()
| 264 | // The bitmap includes the required "quiet zone" around the QR Code to aid |
| 265 | // decoding. |
| 266 | func (q *QRCode) Bitmap() [][]bool { |
| 267 | // Build QR code. |
| 268 | q.encode() |
| 269 | |
| 270 | return q.symbol.bitmap() |
| 271 | } |
| 272 | |
| 273 | // Image returns the QR Code as an image.Image. |
| 274 | // |
no test coverage detected