createQRCodeBitmap
fun createQRCodeBitmap(content: String, @IntRange(from = 0) width: Int, @IntRange(from = 0) height: Int, characterSet: String = "UTF-8", errorCorrection: ErrorCorrectionLevel = ErrorCorrectionLevel.H, @IntRange(from = 0) margin: Int = 2, qrColor: QRCode.QRColor = QRColor()): Bitmap
Create QR code bitmap (support custom configuration and custom style).
Return
QRCode bitmap.
Since
0.5.1
Parameters
content
QRCode string content.
width
bitmap width(in pixel).
height
bitmap height(in pixel).
characterSet
character set/character transcoding format (supported format: CharacterSetECI). Using "UTF-8" by default.
errorCorrection
fault tolerance level (support level: ErrorCorrectionLevel). Using ErrorCorrectionLevel.H by default.
margin
bitmap margin (modifiable, required: integer and >=0), Using 2 by default.
qrColor
See also
CharacterSetECI
ErrorCorrectionLevel