Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

captureScreen
Started by kakula Dec 28 2018 03:54 PM

1 reply to this topic
capturescreen
[TOPIC CONTROLS]
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

kakula

[GLOBAL: userInfoPane.html]
kakula
  • Enthusiast

  • 79 posts
  • Corona SDK

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



[TOPIC: post.html]
#2

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 25,380 posts
  • Enterprise

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




[topic_controls]
[/topic_controls]

Also tagged with one or more of these keywords: capturescreen