toImageBitmap
fun DataMatrixSymbol.toImageBitmap(modulePixels: Int = 10, quietZone: Int = Gs1DataMatrix.QUIET_ZONE_MODULES, darkColor: Color = Color.Black, lightColor: Color = Color.White): ImageBitmap(source)
fun QrCodeSymbol.toImageBitmap(modulePixels: Int = 10, quietZone: Int = QrCode.QUIET_ZONE_MODULES, darkColor: Color = Color.Black, lightColor: Color = Color.White): ImageBitmap(source)
Renders the symbol to a bitmap with exactly modulePixels pixels per module, e.g. for sharing or sending to a printer (use the printer's dots per module for sharp edges).
fun Code128Symbol.toImageBitmap(modulePixels: Int = 2, barHeightPixels: Int = 128, quietZone: Int = Gs1Code128.QUIET_ZONE_MODULES, darkColor: Color = Color.Black, lightColor: Color = Color.White): ImageBitmap(source)
Renders the bars to a bitmap with exactly modulePixels pixels per module and barHeightPixels high. The human readable text is not included.