screen.screen.image
Declaration
lua
screen.image([left, top, right, bottom])
Description
Capture screen as image object.
Parameters
`left,top,right,bottom` (optional) — region
Return Values
`image` — image object (call :destroy() to free)
Example
lua
local img = screen.image()
-- use img
img:destroy()