2017-04-24 70 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 
}) 
相关问题