writeImage

open fun writeImage(destination: OutputStream, format: String = "PNG", quality: Int = 100)(source)

Writes the QRCode image in the specified format and quality into the destination OutputStream.

For app stability reasons if the specified format doesn't exist it'll be defaulted to PNG.

Note: Please note that JPG is supported via the JPEG value, with an E.

See also

open fun writeImage(destination: OutputStream, format: String = "PNG")(source)

Writes the QRCode image in the specified format into the destination OutputStream.

See also

Throws

No suitable Image Writer was found for the specified format.