Skip to content

surface_get_width

Vašek edited this page Jan 16, 2019 · 1 revision

surface_get_width

Finds the pixel width of a surface

Syntax:

surface_get_width(surface_id)
Argument Description
RenderTarget2D surface_id The ID of the surface

Returns: int

Description:

This function simply returns the width, in pixels, of the surface.

Example:

int value = surface_get_width(surf);

This code sets value as the width of the surface called surf.

Back to surfaces

Clone this wiki locally