DataMatrix

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

An immutable square grid of Data Matrix modules.

true is a dark (foreground) module, false light. The matrix already includes the finder ("L") and timing patterns and has no quiet zone — renderers should add the standard 1-module light border themselves.

Constructors

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

Properties

Link copied to clipboard
val size: Int

side length in modules (the symbol size, e.g. 10..52).

Functions

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

Whether the module at column x / row y is dark. Origin top-left, matching the convention used throughout PdfKmp.