MCPcopy
hub / github.com/skip2/go-qrcode / Bitmap

Method Bitmap

qrcode.go:266–271  ·  view source on GitHub ↗

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.

()

Source from the content-addressed store, hash-verified

264// The bitmap includes the required "quiet zone" around the QR Code to aid
265// decoding.
266func (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//

Callers 2

ToStringMethod · 0.95
ToSmallStringMethod · 0.95

Calls 2

encodeMethod · 0.95
bitmapMethod · 0.80

Tested by

no test coverage detected