Module ui.widget.imagewidget

ImageWidget shows an image from a file or memory.

Show image from file example:

UIManager:show(ImageWidget:new{
    file = "resources/koreader.png",
    -- Make sure alpha is set to true if png has transparent background
    -- 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,
})



generated by LDoc 1.5.0 Last updated 2024-12-19 07:44:17