I have been trying to get this to work all day today and I am really stuck. After many attempts this is what I have.
I am trying to take a screenshot of the game and then save the screenshot to the phone so that it can be accessed outside of the app with other apps later on. When a virtual button for screenshot is pressed it goes to the following:
label_save:
save()
end
function save()
do
string_value$="saving screen capture to device..."
Print (string_value$)
CreateRenderImage( 5,320, 480, 0, 0 )
render()
GetImage(5,0,0,320,480)
saveImage(5,"screencapture.png")
if GetVirtualButtonPressed(1) =1
gosub label_capturebackgroundimage
endif
if GetVirtualButtonPressed(2) =1
gosub label_gallery
endif
sync()
loop
endfunction
return
I would be very grateful for any help anyone could offer.