Saves a surface in a png format
surface_save(surface_id, fname)
RenderTarget2D
string
Returns: void
void
This function saves a surface like a picture in a png format.
RenderTarget2D surf = surface_create(2048, 2048); surface_save(surf, "surface0");
This function will create new surface surf and then save it like a file called surface0.png.
surf
surface0.png
Back to surfaces
There was an error while loading. Please reload this page.