DataMatrixSymbol

An encoded GS1 DataMatrix symbol.

Draw each module as a square of a whole number of pixels or printer dots, leaving at least Gs1DataMatrix.QUIET_ZONE_MODULES light module around the symbol.

Properties

Link copied to clipboard

All codewords placed in the symbol: data (including padding) followed by error correction.

Link copied to clipboard
Link copied to clipboard

Human readable interpretation to print near the symbol, e.g. (01)09501101020917(10)ABC123.

Link copied to clipboard
val rows: Int
Link copied to clipboard
Link copied to clipboard

Data codewords used by the message, before padding.

Functions

Link copied to clipboard
operator fun get(row: Int, column: Int): Boolean

true if the module at row, column is dark. Row 0 is the top.

Link copied to clipboard
fun heightMm(xDimensionMm: Double, quietZone: Int = Gs1DataMatrix.QUIET_ZONE_MODULES): Double

Physical height for a module size of xDimensionMm, including quiet zones.

Link copied to clipboard
fun toModules(quietZone: Int = Gs1DataMatrix.QUIET_ZONE_MODULES): Array<BooleanArray>

Rows of modules (true = dark) with quietZone light modules on every side.

Link copied to clipboard
open override fun toString(): String
Link copied to clipboard
fun DataMatrixSymbol.toSvg(moduleSize: Double = 10.0, unit: String = "", quietZone: Int = Gs1DataMatrix.QUIET_ZONE_MODULES, darkColor: String = "#000000", lightColor: String? = "#ffffff"): String

Renders the symbol as an SVG document.

Link copied to clipboard
fun widthMm(xDimensionMm: Double, quietZone: Int = Gs1DataMatrix.QUIET_ZONE_MODULES): Double

Physical width for a module size of xDimensionMm, including quiet zones.