acid-drop- Hacking the planet from a LilyGo T-Deck using custom firmware |
git clone git://git.acid.vegas/acid-drop.git |
Log | Files | Refs | Archive | README | LICENSE |
png.md (1021B)
1 ```eval_rst 2 .. include:: /header.rst 3 :github_url: |github_link_base|/libs/png.md 4 ``` 5 6 # PNG decoder 7 8 Allow the use of PNG images in LVGL. This implementation uses [lodepng](https://github.com/lvandeve/lodepng) library. 9 10 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. 11 12 Note that, a file system driver needs to registered to open images from files. Read more about it [here](https://docs.lvgl.io/master/overview/file-system.html) or just enable one in `lv_conf.h` with `LV_USE_FS_...` 13 14 The whole PNG image is decoded so during decoding RAM equals to `image width x image height x 4` bytes are required. 15 16 As it might take significant time to decode PNG images LVGL's [images caching](https://docs.lvgl.io/master/overview/image.html#image-caching) feature can be useful. 17 18 ## Example 19 ```eval_rst 20 21 .. include:: ../../examples/libs/png/index.rst 22 23 ``` 24 25 ## API 26 27 ```eval_rst 28 29 .. doxygenfile:: lv_png.h 30 :project: lvgl 31