lv_canvas_set_buffer() function
Set a buffer for the canvas.
Arguments
canvas
pointer to a canvas object
buf
a buffer where the content of the canvas will be. The required size is (lv_img_color_format_get_px_size(cf) * w) / 8 * h) It can be allocated with `lv_mem_alloc()` or it can be statically allocated array (e.g. static lv_color_t buf[100*50]) or it can be an address in RAM or external SRAM
cf
color format. `LV_IMG_CF_...`