Gs1Code128Barcode
fun Gs1Code128Barcode(symbol: Code128Symbol, modifier: Modifier = Modifier, moduleWidth: Dp = 2.dp, barHeight: Dp = 64.dp, quietZone: Int = Gs1Code128.QUIET_ZONE_MODULES, darkColor: Color = Color.Black, lightColor: Color = Color.White, textStyle: TextStyle? = Gs1HumanReadableTextStyle)(source)
Shows a GS1-128 symbol with its human readable text underneath.
Without a width from modifier, each module is moduleWidth (rounded to whole pixels). With a fixed width, the bars are drawn as wide as fits, centred, with whole-pixel modules.
Parameters
barHeight
height of the bars when the height is not fixed by modifier.
textStyle
style of the human readable text, or null to hide it.
fun Gs1Code128Barcode(message: Gs1Message, modifier: Modifier = Modifier, moduleWidth: Dp = 2.dp, barHeight: Dp = 64.dp, quietZone: Int = Gs1Code128.QUIET_ZONE_MODULES, darkColor: Color = Color.Black, lightColor: Color = Color.White, textStyle: TextStyle? = Gs1HumanReadableTextStyle)(source)
Encodes message and shows it as a GS1-128 symbol.
Throws
if the message is too long; validate data beforehand.