Picture:center() method
Centers the Picture on the parent widget.
Return value
This function returns no value.Example
local ui = require "ui"
-- create a simple Window
local win = ui.Window("Picture:center() sample", 340, 200)
ui.Picture(win, "examples/LuaRT.png", -76).onClick = function (self)
self:center()
end
win:show()
-- update the user interface until the user closes the Window
repeat
ui.update()
until not win.visible