QrMatrix

class QrMatrix(val size: Int, modules: BooleanArray)

An immutable square grid of QR modules.

A "module" is one cell of the code; true is a dark (foreground) module and false is a light (background) one. The matrix has no quiet zone — callers that render it should add the standard 4-module light border themselves.

Constructors

Link copied to clipboard
constructor(size: Int, modules: BooleanArray)

Properties

Link copied to clipboard
val size: Int

the side length in modules (always 17 + 4 * version, so 21..177).

Functions

Link copied to clipboard
operator fun get(x: Int, y: Int): Boolean

Returns whether the module at x (column) / y (row) is dark.