cairo is only required in the "open image" bloc
This commit is contained in:
parent
38a3ae4d89
commit
87705778a8
2
demo.lua
2
demo.lua
|
@ -1,7 +1,7 @@
|
|||
local cairo = require'cairo' --used to open the file
|
||||
local bitmap = require'bitmap' --used to read its content
|
||||
|
||||
do --open image
|
||||
local cairo = require'cairo' --used to open the file
|
||||
local image = cairo.load_png("/home/user/cle-usb-emulateurs.png")
|
||||
image_infos = {width = image:width(), height = image:height()}
|
||||
image_bitmap = image:bitmap()
|
||||
|
|
Loading…
Reference in New Issue