doc: add more doc for imagewidget

pull/2341/head
Qingping Hou 8 years ago
parent 42d74c0a36
commit 17b453cd02

@ -1,7 +1,7 @@
--[[--
ImageWidget shows an image from a file
ImageWidget shows an image from a file or memory
Example:
Show image from file example:
UIManager:show(ImageWidget:new{
file = "resources/info-i.png",
@ -9,6 +9,15 @@ Example:
-- alpha = true,
})
Show image from memory example:
UIManager:show(ImageWidget:new{
-- bitmap_buffer should be a block of memory that holds the raw
-- uncompressed bitmap.
image = bitmap_buffer,
})
]]
local Widget = require("ui/widget/widget")

Loading…
Cancel
Save