【发布时间】:2013-07-31 20:59:20
【问题描述】:
我必须截取所需屏幕组的屏幕截图,但它无法正常工作,并且全黑图像保存在文档目录中。如何保存截图?
local function takeSnapshot(event)
timer.performWithDelay( 100, captureWithDelay )
end
function captureWithDelay()
local baseDir = system.DocumentsDirectory
display.save( stageGroup, "entireGroup.jpg", baseDir )
end
【问题讨论】:
-
我猜,你的 stageGroup 是空的或者只是一个黑屏。你能分享更多你的代码吗?