问题
Can anyone suggest how to capture a screen in corona both full screen and particular portion of it?
回答1:
Try this. It will work :
local function captureDeviceScreen()
local captured_image = display.captureScreen( true )
captured_image:scale(.5,.5)
local alert = native.showAlert( "Success", "Captured Image is Saved to Library", { "OK" } )
end
Runtime:addEventListener("tap",captureDeviceScreen)
回答2:
A google search produced this link: How to capture a screen in corona
If you are having issues with an implementation then please provide more information and perhaps say what you have tried so far so we know where to go next.
来源:https://stackoverflow.com/questions/14355806/corona-how-to-capture-a-screen-in-corona