So I've been working on this, and I kinda got somewhere but I'm back into trouble.
function save_image()
// Grab an image from the screen
image = GetImage ( 0, 0, 720, 1280 )
PrintImage(image,100)
endfunction
Now this kinda works, it exports a photo when I test it on an android AppGameKit player, however the photo is just completely black and 1080x1920 resolution. How can I fix this?
if I replace printimage() with saveimage(), absolutely nothing happens. Has anyone used saveimage? I don't know where the image gets saved when I try using tutorial scripts.
I've tried
CreateRenderImage(1,screen_x,screen_y,1,0)
and into the loop putting
SetRenderToImage(1,0)
SetRenderToScreen()
but that just gives me a GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT error message.