Gs1DataMatrixBarcode
fun Gs1DataMatrixBarcode(symbol: DataMatrixSymbol, modifier: Modifier = Modifier, moduleSize: Dp = 4.dp, quietZone: Int = Gs1DataMatrix.QUIET_ZONE_MODULES, darkColor: Color = Color.Black, lightColor: Color = Color.White)(source)
Shows a GS1 DataMatrix symbol.
Without a size from modifier, each module is moduleSize (rounded to whole pixels). With a fixed size, the symbol is drawn as large as fits, centred, with whole-pixel modules.
fun Gs1DataMatrixBarcode(message: Gs1Message, modifier: Modifier = Modifier, shape: DataMatrixShape = DataMatrixShape.SQUARE, moduleSize: Dp = 4.dp, quietZone: Int = Gs1DataMatrix.QUIET_ZONE_MODULES, darkColor: Color = Color.Black, lightColor: Color = Color.White)(source)
Encodes message and shows it as a GS1 DataMatrix symbol.
Throws
if the message does not fit; validate data beforehand.