Xbasic
QRCode::Creator::GenerateJpeg Method
Syntax
PUBLIC STATIC GenerateJpeg AS B (text AS C, correctionLevel AS C)
Arguments
- text AS C
QRCode input
- correctionLevel AS C
Correction level can be L,M,Q or H (L=7%, M=15%, Q=25%, H=30%). See QRCode Namespace for more information.
Description
Return a blob containing the contents of a .JPEG formatted QRCode image.
Example
dim jpgData as b = ::QRCode::Creator::GenerateJpeg("Hello world","M") dim html as c = "<p><img src=\"data:image/jpg;base64," + base64encode(jpgData)+"\" /></p>" a5_show_html(html)
See Also