-
-
Notifications
You must be signed in to change notification settings - Fork 18
surface_save
Vašek edited this page Jan 18, 2019
·
3 revisions
Saves a surface in a png format
surface_save(surface_id, fname)
Argument | Description |
---|---|
RenderTarget2D surface_id |
The ID of the surface |
string fname |
Name for the surface |
Returns: 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
.
Back to surfaces