It would be useful to be able to capture a screenshot using Lua code. [import]uid: 1560 topic_id: 2722 reply_id: 302722[/import]
you mean
something like
local baseDir = system.DocumentsDirectory
display.save( display.currentStage, "entireScreen.jpg", baseDir )
local im = display.newImage(basedir+"entireScreen.jpg",0,0);
See :
http://developer.anscamobile.com/sample-code/capture-file
carlos [import]uid: 24 topic_id: 2722 reply_id: 8099[/import]
Cool. Nevermind
[import]uid: 1560 topic_id: 2722 reply_id: 8109[/import]
Where does the actual jpg file end up? I’ve added
[lua]local baseDir = system.DocumentsDirectory
display.save( display.currentStage, “entireScreen.jpg”, baseDir )[/lua]
to my app but I’m not seeing entireScreen.jpg either on my device or in the simulator. [import]uid: 1560 topic_id: 2722 reply_id: 8260[/import]