Name
ccontext:Save -- save current state
Synopsis
ccontext:Save()
Function
Makes a copy of the current state of the context and saves it on an internal stack of saved states for the context. When ccontext:Restore() is called, the context will be restored to the saved state. Multiple calls to ccontext:Save() and ccontext:Restore() can be nested; each call to ccontext:Restore() restores the state from the matching paired ccontext:Save().

It isn't necessary to clear all saved states before a Cairo context is freed. If the reference count of a Cairo context drops to zero in response to a call to ccontext:Free(), any saved states will be freed along with the Cairo context.

Inputs
none


Show TOC