MCPcopy Create free account
hub / github.com/PageBot/PageBot / save

Method save

Lib/pagebot/contexts/basecontext/basecontext.py:208–210  ·  view source on GitHub ↗

Saves the current graphic state, in case it needs to be restored later.

(self)

Source from the content-addressed store, hash-verified

206 # Graphics state.
207
208 def save(self):
209 """Saves the current graphic state, in case it needs to be restored later."""
210 self.saveGraphicState()
211
212 def restore(self):
213 """Restores the previous graphic state."""

Callers 2

drawPathMethod · 0.95
scaleImageMethod · 0.45

Calls 1

saveGraphicStateMethod · 0.45

Tested by

no test coverage detected