Picture:hide() method


Hide and deactivate the Picture (events can no longer be fired).

Return value

This function returns no value.

Example

local ui = require "ui" -- create a simple Window local win = ui.Window("Picture:hide() sample", 340, 180) local picture = ui.Picture(win, "examples/LuaRT.png", -74) -- Spawn a Task to hide/show picture every 500ms async(function() while true do picture:hide() sleep(500) picture:show() sleep(500) end end) ui.run(win):wait()