natiny.texture.get_height
natiny.texture.get_height(tex) -> height
Returns the texture height in pixels.
Parameters
| Name | Type | Description |
|---|---|---|
tex |
number |
Texture handle from natiny.texture.create |
Returns
| Type | Description |
|---|---|
number |
Height in pixels, or 0 for an invalid handle |
Example
local h = natiny.texture.get_height(tex)