lv_snapshot_take_to_buf() function
Take snapshot for object with its children, save image info to provided buffer.
Arguments
obj
The object to generate snapshot.
cf
color format for generated image.
dsc
image descriptor to store the image result.
buf
the buffer to store image data.
buff_size
provided buffer size in bytes.
Return value
LV_RES_OK on success, LV_RES_INV on error.