w, h = img.width, img.height for y = 0, h-1 do if img.getInt(x, y) == 0 then return "die grenze! " .. tonumber(y) end end