captureScreen

Hi,

When i use CaptureScreen Function, it does not capture native display objects like mapview

i was expecting this, but is there a way to make it do so

if you capture the screen with phone’s buttons it will work … but with this function it does not!

how can i make it work

i’m trying to do this because saving offline maps does not work … so as a final resort i’m trying to capture an image from mapview to show it when user is offline … any help please

Regards,

Tariq

Corona’s display saving functions only work with objects that are part of the Corona display OpenGL canvas. All of the native.* API’s sit on top of that canvas, but are not a part of it. This is not possible with Corona.

Now you might be able to use Corona Native to do this. It doesn’t look like it’s complex on Android according to this stackoverflow  post: https://stackoverflow.com/questions/2661536/how-to-programmatically-take-a-screenshot

I would assume it’s pretty straightforward on iOS as well.

Rob

Corona’s display saving functions only work with objects that are part of the Corona display OpenGL canvas. All of the native.* API’s sit on top of that canvas, but are not a part of it. This is not possible with Corona.

Now you might be able to use Corona Native to do this. It doesn’t look like it’s complex on Android according to this stackoverflow  post: https://stackoverflow.com/questions/2661536/how-to-programmatically-take-a-screenshot

I would assume it’s pretty straightforward on iOS as well.

Rob