使用如下代码截图:
display.captureScreen(function(bSuc, filePath)
--bSuc 截屏是否成功
--filePath 文件保存所在的绝对路径
if bSuc then
print("截屏成功......")
else
print("截屏失败......")
end
end, "screen.png")
提示:
LUA ERROR: :1531: attempt to call field ‘captureScreen’ (a nil value) 有没有人之指点下!