Skip to content

surface_get_height

Vašek edited this page Jan 16, 2019 · 2 revisions

surface_get_height

Finds the pixel height of a surface

Syntax:

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

Returns: int

Description:

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

Example:

int value = surface_get_height(surf);

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

Back to surfaces

Clone this wiki locally