Use command line argument

This commit is contained in:
KikooDX 2020-04-22 17:52:59 +02:00
parent 0d88c50564
commit 8d00d53b88
1 changed files with 1 additions and 1 deletions

View File

@ -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