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.
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.
canvas.getClipBounds()
Rect
'clipRect (Rect rect, Region.Op op)' op Union, . , . . . , canvas.save() , , , , .
BTW, , javadoc clipRect , , ,
canvas.save() rect, canvas.restore(), .
canvas.save()
canvas.restore()