Expand clip region


#1

Hello.

Is there a way to expand the clip after calling reduceClipRegion?

It looks like there used to be a setClipRegion (Reset clip region on Graphics), but can’t find any similar reference to the latest code.

I want to reduce the clip, do some drawing which goes outside the clip (but is too difficult to compute manually), and then restore the clip and do some more drawing.

This may be quite frequent, so don’t really want to draw to a temporary image each time.

Cheers


#2

Have you looked at Graphics::saveState() and ::restoreState()?


#3

…and not to forget Graphics::ScopedSaveState