Hello,
We don't know what is the "State" of graphics.
In the example we understand the restore method set the transform again but it does not restore the graphics (the red rectangle is kept).
It should be useful to know what properties the Save methode saves.