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

Random text in Corona
How to use ImageRect images into movieclip in corona sdk?
Dynamic image display for android in corona sdk
director error in corona
How can I get the colour (fill) of a DisplayObject in response to an event like a touch in Corona SDK?
In Corona SDK the background image always cover other images
how to build corona sdk for android?
Corona SDK collision inside radius
How to set width and height for group in corona sdk
how to set shadow for font in corona sdk
Display an image on collision of two objects
Create different shape in corona sdk?
Cross Promoting other apps in corona sdk?
Corona SDK - native textfield within scrollview?
Texture Atlases In Corona SDK and Retina/Multi-res
Unwanted sprite rotation in Corona SDK

Categories

HOME
artificial-intelligence
automapper
yaml
vagrant
yii
scroll
hid
ant
odata
apk
nsis
swift2
dji-sdk
stored-procedures
cocotb
scrape
documentum
mpu6050
user-defined-types
tomcat8
playframework-2.0
nose
libgit2
error-logging
data-type-conversion
conda
perfino
clipboard
code-climate
bobo-browse.net
laravel-4.2
guice
premake
actframework
rspec-rails
serversocket
devtools
winrm
cmis
autoencoder
des
jade4j
fastlane
cartopy
unification
widestring
oauth2-playground
distributed-caching
hypothesis-test
code-push
rightnow-crm
section508
viewmodel
.net-micro-framework
nusoap
e
mathjs
jpda
decoder
jemdoc
gravatar
univocity
lovefield
unhandled
compositetype
modern.ie
com0com
webproject
tidyr
jolie
uno
producer
coding-efficiency
forio-contour
rails-api
cpu-time
usb-flash-drive
2d-vector
xmlwriter
email-verification
spark-view-engine
border-box
system-information
n-queens
kext
mediacontroller
upshot
printqueue
sqlsitemapprovider
isapi-redirect

Resources

Database Users
RDBMS discuss
Database Dev&Adm
javascript
java
csharp
php
android
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App