「App:Library:LVGL:docs:3rd party libraries:PNG decoder」の版間の差分

提供: robot-jp wiki
ナビゲーションに移動検索に移動
1行目: 1行目:
 
https://docs.lvgl.io/8.2/libs/png.html
 
https://docs.lvgl.io/8.2/libs/png.html
 
__NOTOC__
 
__NOTOC__
 +
= PNG decoder =
 
{| class="wikitable"
 
{| class="wikitable"
 
!英文
 
!英文
6行目: 7行目:
 
|-
 
|-
 
|
 
|
|
 
|}
 
 
= PNG decoder =
 
 
Allow the use of PNG images in LVGL. This implementation uses lodepng library.
 
Allow the use of PNG images in LVGL. This implementation uses lodepng library.
  
19行目: 16行目:
  
 
As it might take significant time to decode PNG images LVGL's images caching feature can be useful.
 
As it might take significant time to decode PNG images LVGL's images caching feature can be useful.
 +
|
 +
|}
 +
  
 
== Example ==
 
== Example ==
 +
{| class="wikitable"
 +
!英文
 +
!自動翻訳
 +
|-
 +
|
 
=== 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]]
+
[[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]]|
 +
|}
  
----
 
  
 
== API ==
 
== API ==
 +
{| class="wikitable"
 +
!英文
 +
!自動翻訳
 +
|-
 +
|
 
Functions
 
Functions
  
 
; <span id="_CPPv311lv_png_initv"></span><span id="_CPPv211lv_png_initv"></span><span id="lv_png_init__void"></span><span id="lv__png_8h_1adc5d316c551d60f37084dd40b1aaec18" class="target"></span>void lv_png_init(void)[https://docs.lvgl.io/8.2/libs/png.html#_CPPv411lv_png_initv] <span id="_CPPv311lv_png_initv"></span><span id="_CPPv211lv_png_initv"></span><span id="lv_png_init__void"></span><span id="lv__png_8h_1adc5d316c551d60f37084dd40b1aaec18" class="target"></span>
 
; <span id="_CPPv311lv_png_initv"></span><span id="_CPPv211lv_png_initv"></span><span id="lv_png_init__void"></span><span id="lv__png_8h_1adc5d316c551d60f37084dd40b1aaec18" class="target"></span>void lv_png_init(void)[https://docs.lvgl.io/8.2/libs/png.html#_CPPv411lv_png_initv] <span id="_CPPv311lv_png_initv"></span><span id="_CPPv211lv_png_initv"></span><span id="lv_png_init__void"></span><span id="lv__png_8h_1adc5d316c551d60f37084dd40b1aaec18" class="target"></span>
 
: Register the PNG d[https://docs.lvgl.io/8.2/libs/png.html#_CPPv411lv_png_initv]ecoder functions in LVGL
 
: Register the PNG d[https://docs.lvgl.io/8.2/libs/png.html#_CPPv411lv_png_initv]ecoder functions in LVGL
 +
|
 +
|}
  
  
  
 
 
 
 
 
 
----
 
 
:[[App:Library:LVGL:docs:3rd party libraries|戻る : Previous]]
 
:[[App:Library:LVGL:docs:3rd party libraries|戻る : Previous]]

2022年6月29日 (水) 15:32時点における版

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

LVGL docs 3rdPartyLibs PNGdecoder 01.png|


API

英文 自動翻訳

Functions

void lv_png_init(void)[1]
Register the PNG d[2]ecoder functions in LVGL


戻る : Previous