Skip to content

A pure Lua library for generating BMP file from qrcode array

Notifications You must be signed in to change notification settings

kevin1018/luaqrcode_bmp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

A pure Lua library for generating BMP file from qrcode array

Dependencies

Interface

function bmp(array, width)

array is qrcode data which is generated by luaqrcode. width is BMP image's width.

Example

qrencode = require("qrencode")
bmp = require("bmp")

local ok, tab_or_message = qrencode.qrcode("hello world")
if not ok then
    print(tab_or_message)
else
    image_file = io.open("test.bmp", "wb")
    image_file:write(bmp(tab_or_message, 230))
    image_file:close()
end

About

A pure Lua library for generating BMP file from qrcode array

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages