I have a Canvas
object, at some point I set a clip so I could draw into that 'window/section' without worrying about overflow into other parts of the canvas.
After I'm done drawing into the 'window' I want to remove that clip area, which I cant seem to do.
There is no remove clip function, when I try to apply a new clip on the entire canvas, that clip is not being applied - Calling canvas.getClipBounds()
right after applying the new clip returns a Rect
with the previous clip.
Use canvas.save()
before setting the clip rect then canvas.restore()
to discard the clipping rect.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With