-
-
Notifications
You must be signed in to change notification settings - Fork 18
surface_get_width
Vašek edited this page Jan 16, 2019
·
1 revision
Finds the pixel width of a surface
surface_get_width(surface_id)
Argument | Description |
---|---|
RenderTarget2D surface_id |
The ID of the surface |
Returns: int
This function simply returns the width, in pixels, of the surface.
int value = surface_get_width(surf);
This code sets value
as the width of the surface called surf
.
Back to surfaces