//qrcode-kotlin/io.github.g0dkar.qrcode.render/QRCodeGraphics/getBytes

getBytes

[common, js, native]
[common]
expect open fun getBytes(): ByteArray

[js, native]
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, native]
[common]
expect open fun getBytes(format: String): ByteArray

[js, native]
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