GML Saving room as image

A

Aidan Kendall

Guest
So I would like to save my room as an image in order to draw over it, but I can't figure out how to do this.
All I could find was you could do it using surfaces.

My current code is like this:
surf = surface_create(12800,720) //12800 room width, 720 room height
if (keyboard_check_pressed(vk_enter)) //Save surface to disk
{
surface_save(surf, "roooroom.png");
}

This just saves it as a black image, does anyone know how to make it set the surface as the entire room or know of another way to save a room as an image.
 
A surface is literally blank when you create it. It doesn't take on the appearance of the application screen (that would defeat the purpose of a surface) without you setting it to it.
Code:
surface_copy(surf,0,0,application_surface);
 
A

Aidan Kendall

Guest
A surface is literally blank when you create it. It doesn't take on the appearance of the application screen (that would defeat the purpose of a surface) without you setting it to it.
Code:
surface_copy(surf,0,0,application_surface);
Thanks for the help! But I'm trying to save an image of the ENTIRE room (12800 x 720). Using application_surface won't work because it would only capture the window, so do you know how I would make the surface the entire room then?
 
Change the camera size for a step to encompass the entire area, save the application surface on that step, then reset the camera size.
 
Top