Finds the pixel width of a surface
surface_get_width(surface_id)
RenderTarget2D
Returns: int
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.
value
surf
Back to surfaces
There was an error while loading. Please reload this page.