How can display an image who sent by composer.setVariable to another scene

Hi ,

I take a screen capture from my screen (i can show it on the screen properly) and then i passed it in a variable like this :

local capture = display.captureBounds( screenBounds ) composer.setVariable( "captured\_image", capture ) 

Then i change the scene by 

composer.showOverlay( "screenshot" , options ) 

 in the screenshot scene , i want to display the image that is in the captured_image variable and stored in shoted_image local variable :

shoted\_image = composer.getVariable("captured\_image")

How can i do it ?

Thanks  

Any idea for how can display the captured image in a scene, in another scene?

Hi @emaadghorbani,

That should work fine… just display the image in the new scene using “display.newImage()” or “display.newImageRect()”, referencing the Composer variable that you set.

Take care,

Brent

Any idea for how can display the captured image in a scene, in another scene?

Hi @emaadghorbani,

That should work fine… just display the image in the new scene using “display.newImage()” or “display.newImageRect()”, referencing the Composer variable that you set.

Take care,

Brent