//qrcode-kotlin/qrcode.render/QRCodeGraphics/getBytes
[common, js]
[common]
expect fun getBytes(): ByteArray
[js]
actual open fun getBytes(): ByteArray
Returns this image as a ByteArray encoded as PNG.
[android]
actual open fun getBytes(): ByteArray
Returns this image as a ByteArray encoded as PNG. Recommended to use writeImage.
QRCodeGraphics.writeImage |
QRCodeGraphics.writeImage |
[jvm]
actual open fun getBytes(): ByteArray
Returns this image as a ByteArray encoded as PNG. Usually recommended to use writeImage instead :)
QRCodeGraphics.writeImage |
QRCodeGraphics.writeImage |
[common, js]
[common]
expect fun getBytes(format: String): ByteArray
[js]
actual open fun getBytes(format: String): ByteArray
Returns this image as a ByteArray encoded as the specified format (e.g. PNG
, JPG
, BMP
, …).
[android]
actual open fun getBytes(format: String): ByteArray
Returns this image as a ByteArray encoded as the specified format. Recommended to use writeImage.
QRCodeGraphics.writeImage |
QRCodeGraphics.availableFormats |
QRCodeGraphics.writeImage |
[jvm]
actual open fun getBytes(format: String): ByteArray
Returns this image as a ByteArray encoded as the specified format. Usually recommended to use writeImage instead :)
QRCodeGraphics.writeImage |
QRCodeGraphics.availableFormats |
QRCodeGraphics.writeImage |