「App:Library:LVGL:docs:3rd party libraries:PNG decoder」の版間の差分
提供: robot-jp wiki
ナビゲーションに移動検索に移動21行目: | 21行目: | ||
== Example == | == Example == | ||
− | |||
=== Open a PNG image from file and variable === | === Open a PNG image from file and variable === | ||
− | [[ | + | [[file:LVGL docs 3rdPartyLibs PNGdecoder 01.png|link=https://docs.lvgl.io/8.2/libs/png.html#open-a-png-image-from-file-and-variable]] |
− | |||
− | |||
− | https://docs.lvgl.io/8.2/libs/png.html#open-a-png-image-from-file-and-variable | ||
---- | ---- |
2022年6月28日 (火) 12:59時点における版
https://docs.lvgl.io/8.2/libs/png.html
英文 | 自動翻訳 |
---|---|
PNG decoder
Allow the use of PNG images in LVGL. This implementation uses lodepng library.
If enabled in lv_conf.h
by LV_USE_PNG
LVGL will register a new image decoder automatically so PNG files can be directly used as any other image sources.
Note that, a file system driver needs to registered to open images from files. Read more about it here or just enable one in lv_conf.h
with LV_USE_FS_...
The whole PNG image is decoded so during decoding RAM equals to image width x image height x 4
bytes are required.
As it might take significant time to decode PNG images LVGL's images caching feature can be useful.
Example
Open a PNG image from file and variable
API
Functions