natiny.surface.get_height

Lua
natiny.surface.get_height(surf) -> height

Returns the surface height in pixels.

Parameters

Name Type Description
surf number Surface handle from natiny.surface.create

Returns

Type Description
number Height in pixels, or 0 for an invalid handle

Example

Lua
local h = natiny.surface.get_height(rt)