Use command line argument
This commit is contained in:
parent
0d88c50564
commit
8d00d53b88
2
demo.lua
2
demo.lua
|
@ -2,7 +2,7 @@ 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")
|
||||
local image = cairo.load_png(arg[1])
|
||||
image_infos = {width = image:width(), height = image:height()}
|
||||
image_bitmap = image:bitmap()
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue