Restores the current transformations, clipping region, and quality settings, as well as drawing and filling properties of the canvas to a saved state.
RestoreState restores a previous saved state of the canvas.
Call RestoreState to restore the drawing and filling properties to values saved in previous moments of the drawing process.
The State parameter specifies the pointer to the saved data. After the state is restored, the saved data are freed. If State is empty, RestoreState raises an exception.
To save the canvas state, call