Screenshot on file of full scrollview beyond screen limits

Hi all, is possibile to get a screenshot of a whole scrollview with display.save ?

The scrollview go out screen limits, and contains many display objects.

Look at the “captureOffscreenArea” option for display.save()

https://docs.coronalabs.com/api/library/display/save.html

Rob

local capture = display.save( articleScrollView, {filename="myPaper"..randomId..".jpg", captureOffscreenArea=true, backgroundColor = {1,1,1}} )

Nothing, same result.  :/

if you are using the scroll view widget you probably have to remove the object from widget this is because the way scroll view works, you could also remove the scroll view, screen shot, and make another one

scrollViewGroup:remove( obj )

I followed the tip, no more scrollview. I create another scene with all object inside a group. But, when I use

display.save( newsPaperGroup, { filename=“entireGroup.png”, baseDir=system.DocumentsDirectory, isFullResolution=true, backgroundColor={0,0,0,0} } )

the image I get is a blank image with same height of the group but objects visible only if they was inside the screen.

I very need to implement this function in my app, please help me.

Updated to new version of corona and it works!!!

So happy for this bug fix, thank you a lot guys !!!

There is a problem…it works on simulator and iOS…but on android it cut the capture at screen bounds…why?

Can you build a simple test case that shows this does not work on Android but does work on iOS? If so, put the test app in a .zip file. It needs a main.lua, config.lua, build.settings at a minimum plus any assets needed to run. Our engineers need to be able to open the zip file, build for device and see the problem with out having to guess at any code or artwork.

Use the Report a bug link at the top of this page and submit a detailed description along with the .zip file.

You will get an email with a case # in it. The text has changed recently but it will be a 6 digit number, currently starting with a 5. Please post that back here.

Thanks

Rob

Rob, it seems to be a problem of corona viewer. I have build an apk and work also on android. I use corona viewer for intensive test because my app is about 400 mb.

Okay, Thanks!

Look at the “captureOffscreenArea” option for display.save()

https://docs.coronalabs.com/api/library/display/save.html

Rob

local capture = display.save( articleScrollView, {filename="myPaper"..randomId..".jpg", captureOffscreenArea=true, backgroundColor = {1,1,1}} )

Nothing, same result.  :/

if you are using the scroll view widget you probably have to remove the object from widget this is because the way scroll view works, you could also remove the scroll view, screen shot, and make another one

scrollViewGroup:remove( obj )

I followed the tip, no more scrollview. I create another scene with all object inside a group. But, when I use

display.save( newsPaperGroup, { filename=“entireGroup.png”, baseDir=system.DocumentsDirectory, isFullResolution=true, backgroundColor={0,0,0,0} } )

the image I get is a blank image with same height of the group but objects visible only if they was inside the screen.

I very need to implement this function in my app, please help me.

Updated to new version of corona and it works!!!

So happy for this bug fix, thank you a lot guys !!!

There is a problem…it works on simulator and iOS…but on android it cut the capture at screen bounds…why?

Can you build a simple test case that shows this does not work on Android but does work on iOS? If so, put the test app in a .zip file. It needs a main.lua, config.lua, build.settings at a minimum plus any assets needed to run. Our engineers need to be able to open the zip file, build for device and see the problem with out having to guess at any code or artwork.

Use the Report a bug link at the top of this page and submit a detailed description along with the .zip file.

You will get an email with a case # in it. The text has changed recently but it will be a 6 digit number, currently starting with a 5. Please post that back here.

Thanks

Rob

Rob, it seems to be a problem of corona viewer. I have build an apk and work also on android. I use corona viewer for intensive test because my app is about 400 mb.

Okay, Thanks!