Package-level declarations

Functions

Link copied to clipboard
fun DrawScope.drawQrCode(matrix: BitMatrix, dark: Color = Color.Black, light: Color = Color.White, quietZone: Int = 4)

Draws matrix into the current DrawScope, centred and square.

Link copied to clipboard
fun QrCode(matrix: BitMatrix, modifier: Modifier = Modifier, dark: Color = Color.Black, light: Color = Color.White, quietZone: Int = 4)

Draws a QR (or any) BitMatrix as a Composable, scaling to fill modifier's bounds while staying square and centred. Adjacent dark modules are merged into horizontal runs so the symbol stays crisp with no seams.

Link copied to clipboard
fun BitMatrix.toImageBitmap(scale: Int = 8, quietZone: Int = 4, dark: Color = Color.Black, light: Color = Color.White): ImageBitmap

Rasterises this matrix into an ImageBitmap. Useful for Image(bitmap = ...), sharing, or saving. scale is pixels per module.