admin管理员组文章数量:1180493
I'm trying to erase a rectangle on an SkCanvas by setting the paint's blend mode to kClear. However, instead of getting a transparent area, I end up with a solid black rectangle. Here's a minimal snippet:
paint.setBlendMode(SkBlendMode::kClear);
canvas->drawRect(rect, paint);
I expected the rectangle to become fully transparent, but I'm seeing black where I cleared.
- Why does this produce black instead of a transparent hole?
- How can I make the rectangle truly transparent?
本文标签:
版权声明:本文标题:skia4delphi - Why does using SkBlendMode::kClear produce a black box instead of clearing the area in Skia? - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1738215416a2069380.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论