How to correctly draw an image with an alpha channel of 0

22 views
Skip to first unread message

min

unread,
Jul 15, 2025, 11:10:54 AMJul 15
to skia-discuss

I loaded an image with an alpha channel of 0, and I want to draw it as an opaque image when using drawImageRect. Could someone share the correct way to do this? 

If I draw it directly, the image will blend with the content underneath. Setting the blendMode of paint to SRC might be a solution, but I’m wondering if there are any other solutions?

Reply all
Reply to author
Forward
0 new messages