[][src]Function lvgl::widgets::img::decoder_get_info

pub fn decoder_get_info(
    src: &Strn<'_>,
    header: *mut lv_img_header_t
) -> MynewtResult<lv_res_t>

Get information about an image. Try the created image decoder one by one. Once one is able to get info that info will be used.

  • src: the image source. Can be
  1. File name: E.g. "S:folder/img1.png" (The drivers needs to registered via lv_fs_add_drv())
  2. Variable: Pointer to an lv_img_dsc_t variable
  3. Symbol: E.g. LV_SYMBOL_OK
  • header: the image info will be stored here Return: LV_RES_OK: success; LV_RES_INV: wasn't able to get info about the image