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)