On Android how do I make oddly shaped clipping areas?
问题 Here is how to create a clipping area the shape of a circle: Path path = new Path(); path.addCircle(200,200,100,Direction.CW); c.clipPath(path); // c is a Canvas Now there's a clipping area on the Canvas which prevents drawing anything outside the bounds of that circle. But, what if I want to have the clipping area be shaped like a donut (or whatever)? I tried playing around with creating a second Path and using toggleInverseFillType on it and then adding that to the original path, but that