From Xojo Documentation
Saves graphics state of the graphics context so that it can be restored later.
These values are saved with SaveState and are restored when you call RestoreState.
- Clip region
- Rotate (rotation)
Support for SaveState in Desktop and Console applications was added in 2021r1.
From within an MobileCanvas.Paint event handler: