「App:Library:LVGL:docs:3rd party libraries:PNG decoder」の版間の差分
16行目: | 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. | ||
− | | | + | |LVGLでのPNG画像の使用を許可します。この実装はlodepngライブラリを使用します。 |
+ | |||
+ | LVGLで有効に<code>lv_conf.h</code>する<code>LV_USE_PNG</code>と、新しい画像デコーダーが自動的に登録されるため、PNGファイルを他の画像ソースとして直接使用できます。 | ||
+ | |||
+ | ファイルからイメージを開くには、ファイルシステムドライバを登録する必要があることに注意してください。詳細についてはこちらをご覧になるか、で有効に<code>lv_conf.h</code>してください<code>LV_USE_FS_...</code> | ||
+ | |||
+ | <code>image width x image height x 4</code>PNG画像全体がデコードされるため、デコード中にバイトに 等しいRAMが必要です。 | ||
+ | |||
+ | PNG画像のデコードにはかなりの時間がかかる場合があるため、LVGLの画像キャッシュ機能が役立つ場合があります。 | ||
|} | |} | ||
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 Note that, a file system driver needs to registered to open images from files. Read more about it here or just enable one in The whole PNG image is decoded so during decoding RAM equals to As it might take significant time to decode PNG images LVGL's images caching feature can be useful. |
LVGLでのPNG画像の使用を許可します。この実装はlodepngライブラリを使用します。
LVGLで有効に ファイルからイメージを開くには、ファイルシステムドライバを登録する必要があることに注意してください。詳細についてはこちらをご覧になるか、で有効に
PNG画像のデコードにはかなりの時間がかかる場合があるため、LVGLの画像キャッシュ機能が役立つ場合があります。 |
Example
英文 | 自動翻訳 |
---|---|
Open a PNG image from file and variable |
API
英文 | 自動翻訳 |
---|---|
Functions |