开发者

Canvas drawline with semi transparent lines overlap problem

开发者 https://www.devze.com 2023-01-13 01:00 出处:网络
I am drawing several lines on a canvas using drawline, the lines are semi transparent (their paint has开发者_StackOverflow社区 an alpha value <255) only problem is that the point at which they cros

I am drawing several lines on a canvas using drawline, the lines are semi transparent (their paint has开发者_StackOverflow社区 an alpha value <255) only problem is that the point at which they cross creates a dot of less transparent color (obviously) is there a simple way to avoid this?


You can create a Path and add your lines to the Path. This will prevent the "problem" you are seeing.

0

精彩评论

暂无评论...
验证码 换一张
取 消