Saves a surface in a png format with a specific width and height
surface_save_ext(surface_id, fname, width, height)
RenderTarget2D
string
int
Returns: void
void
This function saves a scaled surface like a picture in a png format. The picture will have a specified width and height by your arguments.
RenderTarget2D surf = surface_create(2048, 2048); surface_save_ext(surf, "Surface2", 1024, 1024);
This function will create new surface surf and then save it half sized like a file called Surface2.png.
surf
Surface2.png
Back to surfaces
There was an error while loading. Please reload this page.