Transférer les fichiers vers ''

This commit is contained in:
KikooDX 2020-04-22 13:39:56 +02:00
parent 20c35dba83
commit 38a3ae4d89
1 changed files with 10 additions and 0 deletions

10
demo.lua Normal file
View File

@ -0,0 +1,10 @@
local cairo = require'cairo' --used to open the file
local bitmap = require'bitmap' --used to read its content
do --open image
local image = cairo.load_png("/home/user/cle-usb-emulateurs.png")
image_infos = {width = image:width(), height = image:height()}
image_bitmap = image:bitmap()
end
local getpixel, setpixel = bitmap.pixel_interface(image_bitmap)
print(image_infos.width, image_infos.height)