Crown: how to capture the screen in the crown?

Can anyone suggest how to capture the screen in the crown both on the whole screen, and on a certain part of it?

-2
source share
2 answers

Try it. 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)
+4
source

A google search created this link: How to capture the screen in the crown

If you have any problems with the implementation, please provide additional information and perhaps tell us what you tried, so we know where to go next.

+3
source

Source: https://habr.com/ru/post/1529414/


All Articles