Can you save a screen capture to a file?

Can you save a picture captured on the simulator and send it to an empty png file to use later? I would like a picture saved when my game is over, and I can do it, but it displays on the next scene. Is there a way to send it into a real file?

You can take a look at those. They all have an option to save as a file.

https://docs.coronalabs.com/api/library/display/capture.html
https://docs.coronalabs.com/api/library/display/captureScreen.html
https://docs.coronalabs.com/api/library/display/captureBounds.html