Android - Canvas.clipRect () - Delete an existing clip

I have an object Canvas, at some point I set a clip so that I can draw this “window / section” without worrying about overflowing to other parts of the canvas.

After I finished drawing in the “window”, I want to delete this area of ​​the clip, which, it seems to me, does not work.

There is no function to delete a clip, when I try to apply a new clip to the entire canvas, this clip does not apply. A call canvas.getClipBounds()immediately after applying a new clip returns Rectwith the previous clip.

+4
source share
2 answers

'clipRect (Rect rect, Region.Op op)' op Union, . , . . . , canvas.save() , , , , .

BTW, , javadoc clipRect , , ,

+1

canvas.save() rect, canvas.restore(), .

+11

All Articles