Saving image in BGE

hi, there I have a question here, is it possible to to render an image in blender game engine and save it to jpeg or any image type file in a folder? Specifically, I have a walkthrough scene, i want to save the scenery as an image in BGE. Can someone point me if there are any tutorial or sources. Thank you…

there is a command to take a screenshot, there is also bpy.ops.image …
i havent used either sorry, but the api for bge.render (http://www.blender.org/documentation/blender_python_api_2_57_release/bge.render.html) says to use:

bge.render.makeScreenshot(<i>filename</i>)[```](http://www.blender.org/documentation/blender_python_api_2_57_release/bge.render.html#bge.render.makeScreenshot)

Thx bro, I will have a look on it…