Here’s a question that maybe to do with capturing the screen using display.captureScreen(false) or I suspect my lack of complete understanding of passing references to display objects.
I have a drawing App where I have different display groups that I want to ‘flattern’ into one image for social media sharing etc. I also want to add to the image and be able to capture it again and again…
I understand how to capture the screen so the line below creates a new display object of everything onscreen without saving the screen to a file.
image = display.captureScreen( false)
the display object image now sits above everything on the display.
I can remove the underlying display objects e.g.
if background.image ~= nil then background.image:removeSelf() background.image = nil end
but I’m having trouble getting the new screen capture to replace the background.image so I can draw on top of it e.g.
background.image = image
– this doesn’t appear to insert the screen capture into the background display group, it still appears on top of everything - so I’m pretty confused !
Can anyone help on this? I imagine this will be useful in any drawing / photo manipulation App
[import]uid: 137150 topic_id: 24709 reply_id: 324709[/import]