//qrcode-kotlin/qrcode.render/QRCodeGraphics/getBytes

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.

See also

 
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 :)

See also

 
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.

See also

 
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 :)

See also

 
QRCodeGraphics.writeImage
QRCodeGraphics.availableFormats
QRCodeGraphics.writeImage