image.img:size
Declaration
lua
img:size()
Description
Get image dimensions.
Parameters
No parameters
Return Values
| Type | Description |
|---|---|
| integer | Width |
| integer | Height |
Example
lua
local w, h = img:size()