How do I antialias the clip boundary on Android's canvas?

前端 未结 4 1481
小蘑菇
小蘑菇 2021-01-30 09:30

I\'m using Android\'s android.graphics.Canvas class to draw a ring. My onDraw method clips the canvas to make a hole for the inner circle, and then draws the full outer circle o

4条回答
  •  余生分开走
    2021-01-30 09:47

    I know this is not a general answer, but in this particular case, you could draw arcs with a thick stroke width, instead of the circles + mask.

提交回复
热议问题