saveState

abstract fun saveState()

Pushes the current canvas state (transform, clip) onto an internal stack. Pair every call with restoreState; mismatched pairs leak state across draw calls and produce garbled output.