doc: add more doc for imagewidget

This commit is contained in:
Qingping Hou
2016-11-16 01:31:39 -08:00
parent 42d74c0a36
commit 17b453cd02

View File

@@ -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")