Feedback
Graphics.RestoreState does not consistently restore drawing properties
- Status
- Fixed
- Fixed in
- v26.9.2
- Area
- -
- Source discussion
- https://forum.objo.dev/d/1089-graphicssavestate-and-graphicsrestorestate
- Last updated
- 2026-09-16
Upvotes
0 upvotes
Uses your Objo forum account.
Public summary
Graphics.RestoreState() does not consistently restore mutable drawing properties such as Opacity to the values captured by the matching Graphics.SaveState(). The drawing renderer and the readable Graphics properties can therefore disagree after leaving a saved drawing scope, and code that reads or adjusts those properties may draw with an unexpected state. Saving and restoring graphics state should cover every mutable setting that affects subsequent drawing, as well as transforms and clipping, including when save scopes are nested.