mirror of
https://github.com/lvgl/lvgl.git
synced 2025-01-14 06:42:58 +08:00
fix(vector): fix draw image pattern with opacity. (#5330)
Signed-off-by: zhangjipeng <zhangjipeng@xiaomi.com> Co-authored-by: zhangjipeng <zhangjipeng@xiaomi.com>
This commit is contained in:
parent
5e62ce3fb4
commit
adfd8c2e8b
@ -318,6 +318,7 @@ static void _set_paint_fill_pattern(Tvg_Paint * obj, Tvg_Canvas * canvas, const
|
||||
tvg_picture_load_raw(img, (uint32_t *)src_buf, header->w, header->h, true);
|
||||
Tvg_Paint * clip_path = tvg_paint_duplicate(obj);
|
||||
tvg_paint_set_composite_method(img, clip_path, TVG_COMPOSITE_METHOD_CLIP_PATH);
|
||||
tvg_paint_set_opacity(img, p->opa);
|
||||
|
||||
Tvg_Matrix mtx;
|
||||
_lv_matrix_to_tvg(&mtx, m);
|
||||
|
Loading…
x
Reference in New Issue
Block a user