Graphics.SaveState
From Xojo Documentation
You are currently browsing the old Xojo documentation site. Please visit the new Xojo documentation site! |
Method
Saves graphics state of the graphics context so that it can be restored later.
Notes
These values are saved with SaveState and are restored when you call RestoreState.
- Translate
- Clip region
- PenSize
- AntiAliased
- DrawingColor
- Font
- Underline
- Rotate (rotation)
Support for SaveState in Desktop and Console applications was added in 2021r1.
Sample Code
From within an MobileCanvas.Paint event handler: