Package-level declarations

Functions

Link copied to clipboard
fun BitMatrix.toPng(scale: Int = 8, quietZone: Int = 4, dark: Int = 0, light: Int = 16777215): ByteArray

Renders a BitMatrix to PNG bytes via the dependency-free Png encoder.

Link copied to clipboard
fun BitMatrix.toSvg(moduleSize: Int = 10, quietZone: Int = 4, dark: String = "#000000", light: String? = "#FFFFFF"): String

Renders a BitMatrix to a standalone SVG string: true vector output, no rasteriser, no platform. Each dark module becomes a 1×1 path cell, so the whole symbol is a single <path>.