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

pub fn decoder_read_line(
    dsc: *mut lv_img_decoder_dsc_t,
    x: lv_coord_t,
    y: lv_coord_t,
    len: lv_coord_t,
    buf: *mut u8
) -> MynewtResult<lv_res_t>

Read a line from an opened image

  • dsc: pointer to lv_img_decoder_dsc_t used in lv_img_decoder_open
  • x: start X coordinate (from left)
  • y: start Y coordinate (from top)
  • len: number of pixels to read
  • buf: store the data here Return: LV_RES_OK: success; LV_RES_INV: an error occurred