mirror of
https://github.com/rivi-s/pfQuest-HDB.git
synced 2026-11-17 16:34:37 +00:00
12 lines
292 B
Lua
12 lines
292 B
Lua
require 'png'
|
|
|
|
function printProg(line, totalLine)
|
|
print(line .. " of " .. totalLine)
|
|
end
|
|
|
|
img = pngImage("Example.png", printProg)
|
|
print("Width: " .. img.width)
|
|
print("Height: " .. img.height)
|
|
print("Depth: " .. img.depth)
|
|
|
|
print("Color of pixel (10, 10): " .. img:getPixel(10,10):format()) |