corona


captureOffscreenArea in display.save() of ScrollViewWidget appears to have no effect


I have a ScrollViewWidget with a scrollHeight greater than the widget height. I'd like to capture the entire contents of the widget using display.save() with captureOffscreenArea = true, but only the onscreen portion of the ScrollViewWidget is being saved.
This problem has come up before, but I thought it had been fixed. I'm using the latest public build (2017.3068). Any idea why this might not be working?
This seems to be a problem with Corona. However, in the meantime, a workaround is to populate a GroupObject with another set of DisplayObjects identical to the ones being added to the ScrollViewWIdget (this may be costly/complicated) and using this GroupObject as the first argument to display.save() with captureOffscreenArea = true:
local _g = display.newGroup()
-- Populate _g with DisplayObjects identical to those in the
-- scroll view, but NOT the same objects (this would remove them
-- from the scroll view).
display.save( _g, {
filename = "foo.jpg",
baseDir = system.TemporaryDirectory,
captureOffscreenArea = true
})

Related Links

Walkable and non Walkable tile map in Corona
Camera capture not scaling properly?
Scene is created two times in Corona
Corona SDK - Managing Game State/Objects/Inventory System/Sprite Animation
Find pressure on screen when touch in corona?
One background image vs repeating pattern/images, for Corona SDK game?
audio.play on specific channel intermittently does not work? (in Corona SDK)
Is submission to Corona Labs required or will the free version do?
How to take picture using hidden camera?
maze collision in corona
corona drag and drop an object on container or reference
Corona SDK - Clip objects in “letterbox” scaling mode
how to remove a view in corona using its id?
Canvas and Object for Coronos
Corona: Double tap / single tap
Deleting All Files from system.DocumentsDirectory in corona

Categories

HOME
ionic2
spring-data
plesk
blast
d3.js
haproxy
loopbackjs
embedded-resource
risk-management
swift2
flurry
openfoam
position
specifications
cisco
getopenfilename
business-intelligence
jquery-select2-4
spring-jpa
nest-api
vertica
gravity
maven-plugin
infrared
spring-ldap
sqlplus
kaggle
connection-refused
uislider
vuforia
cellular-network
acrobat
materialize
mdns
nic
es6-modules
infopath2010
mapnik
runtimeexception
flipkart
spooler
image-registration
ol3-google-maps
uiautomatorviewer
ilrepack
hibernate-ogm
line-intersection
mechanicalturk
degrees
bpms
allegro
dmarc
jsf-2.3
carmen
oci
node.js-connect
jemdoc
vaadin4spring
servicestack-bsd
boost-proto
screen-orientation
dynamics-ax-2012-r2
kotlin-android-extensions
mxe
sql-processor
category-theory
nachos
code-complexity
smips
mousemotionlistener
libxml-js
node.js-stream
background-thread
cmath
examine
wndproc
autosize
dynamic-c
play2-mini
bll
regression-testing
eaccelerator
cassini
raw-data
ppc
service-factory
rootkit
jvm-bytecode
word-automation

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App