Canvas.clipPath(Path) not clipping as expected

后端 未结 2 726
不知归路
不知归路 2020-12-09 09:18

I\'m trying to clip a canvas drawing operation to an arc-shaped wedge. However, I\'m not getting the intended result after setting the clipping path to the canvas.

2条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-09 09:56

    Are you using HC or above or otherwise using hardware acceleration?

    If so, clipPath is unsupported and problematic.

    developer.android.com/guide/topics/graphics/hardware-accel.html.

提交回复
热议问题