Gs1DataMatrix

GS1 DataMatrix encoder: Data Matrix ECC 200 (ISO/IEC 16022) with FNC1 (codeword 232) first.

Data is encoded with ASCII encodation, digit pairs taking one codeword each.

val symbol = Gs1DataMatrix.encode(Gs1Message.parse("(01)09501101020917(17)261231(10)ABC123"))
symbol.rows; symbol.columns // 20 x 20
symbol[row, column] // true = dark module

Properties

Link copied to clipboard
const val QUIET_ZONE_MODULES: Int = 1

Minimum quiet zone on every side, in modules.

Functions

Link copied to clipboard
fun encode(message: Gs1Message, shape: DataMatrixShape = DataMatrixShape.SQUARE, size: DataMatrixSize? = null): DataMatrixSymbol

Encodes message in the smallest symbol of the allowed shape, or in exactly size when given.