Corona: how to capture a screen in corona?

佐手、 提交于 2019-12-03 00:40:37

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!