SKOverdrawCanvas filter pixels

14 views
Skip to first unread message

Clark Kent

unread,
Sep 17, 2022, 1:55:19 AM9/17/22
to skia-discuss
is there a way we can filter pixels drawn via OverdrawCanvas?

for example, filter out any pixels that would be drawn with an alpha of zero

https://fiddle.skia.org/c/9eb1595cf7bb8a55409fcef546c1d557

Clark Kent

unread,
Sep 17, 2022, 1:57:07 AM9/17/22
to skia-discuss
(such as text, where a large portion of the blob is drawn with alpha zero, and the text itself with paint color alpha)

Clark Kent

unread,
Sep 17, 2022, 3:27:14 AM9/17/22
to skia-discuss
specifically it would allow for this
Screenshot 2022-09-17 172412.png

vs this
Screenshot 2022-09-17 172636.png
Reply all
Reply to author
Forward
0 new messages