「App:Library:LVGL:docs:3rd party libraries:GIF decoder」の版間の差分
12行目: | 12行目: | ||
<code style="color: #bb0000;">lv_gif_set_src(obj, src)</code> works very similarly to <code style="color: #bb0000;">lv_img_set_src</code>. As source, it also accepts images as variables (<code style="color: #bb0000;">lv_img_dsc_t</code>) or files. | <code style="color: #bb0000;">lv_gif_set_src(obj, src)</code> works very similarly to <code style="color: #bb0000;">lv_img_set_src</code>. As source, it also accepts images as variables (<code style="color: #bb0000;">lv_img_dsc_t</code>) or files. | ||
+ | | | ||
+ | |} | ||
+ | :[[App:Library:LVGL:docs:3rd party libraries|戻る : Previous]] | ||
+ | |||
== Convert GIF files to C array == | == Convert GIF files to C array == | ||
+ | {| class="wikitable" | ||
+ | !英文 | ||
+ | !自動翻訳 | ||
+ | |- | ||
+ | | | ||
To convert a GIF file to byte values array use LVGL's online converter. Select "Raw" color format and "C array" Output format. | To convert a GIF file to byte values array use LVGL's online converter. Select "Raw" color format and "C array" Output format. | ||
| | | |
2022年6月29日 (水) 15:40時点における版
https://docs.lvgl.io/8.2/libs/gif.html
GIF decoder
英文 | 自動翻訳 |
---|---|
Allow using GIF images in LVGL. Based on https://github.com/lecram/gifdec When enabled in
|
Convert GIF files to C array
英文 | 自動翻訳 |
---|---|
To convert a GIF file to byte values array use LVGL's online converter. Select "Raw" color format and "C array" Output format. |
Use GIF images from file
英文 | 自動翻訳 |
---|---|
For example: lv_gif_set_src(obj, "S:path/to/example.gif"); Note that, a file system driver needs to be registered to open images from files. Read more about it here or just enable one in |
Memory requirements
英文 | 自動翻訳 |
---|---|
To decode and display a GIF animation the following amount of RAM is required:
|
Example
英文 | 自動翻訳 |
---|---|
Open a GIF image from file and variable |
API
英文 | 自動翻訳 |
---|---|
Functions
Variables
|