How to show only the draw part of the canvas

Description

I want only part of the image to appear, I want to draw a rectangle on the canvas that has my image and only the rectangle appears.
how can i do this?

lv_canvas_fill_bg(canvas, lv_palette_lighten(LV_PALETTE_NONE, 3), LV_OPA_TRANSP);

Masking

I still couldn’t :frowning:

I resolve my problem using lv_img_set_offset_x & lv_img_set_offset_y.
Thanks for all