2017-04-24 14 views

回答

0

這似乎是電暈的問題。然而,與此同時,一種解決方法是使用與添加到ScrollViewWIdget中的另一組DisplayObject相同的另一組DisplayObject來填充GroupObject(這可能是高成本/複雜的),並使用該GroupObject作爲display.save()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 
}) 
相關問題