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

pub fn buf_set_px_color(
    dsc: *mut lv_img_dsc_t,
    x: lv_coord_t,
    y: lv_coord_t,
    c: lv_color_t
) -> MynewtResult<()>

Set the color of a pixel of an image. The alpha channel won't be affected.

  • dsc: pointer to an image descriptor
  • x: x coordinate of the point to set
  • y: x coordinate of the point to set
  • c: color of the point
  • safe: true: check out of bounds