如何在电晕中捕获屏幕

如何在电晕中捕获屏幕

本文介绍了Corona:如何在电晕中捕获屏幕?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

谁能建议如何在电晕中捕获全屏和特定部分的屏幕?

Can anyone suggest how to capture a screen in corona both full screen and particular portion of it?

推荐答案

试试这个.它会工作:

    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)

这篇关于Corona:如何在电晕中捕获屏幕?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-24 06:08