[Overview][Types][Classes][Index] |
Saves the current canvas state in the GraphicStateList member.
Source position: lazcanvas.pas line 125
public function TLazCanvas.SaveState: Integer; |
Ordinal position in GraphicStateList where the saved canvas state was stored.
SaveState is an Integer function used to save the current canvas state in the GraphicStateList member. SaveState creates an instance of TLazCanvasState with copies of the current values for Brush, Pen, and Font. Values from BaseWindowOrg, WindowOrg, and Clipping are also assigned to the class instance.
The return value contains the ordinal position in GraphicStateList where the canvas state was added in the method.
Use RestoreState to restore the canvas to the state stored at a specified position in the list.
|
Brush assigned to the canvas. |
|
|
Pen assigned to the canvas. |
|
|
Font assigned to the canvas. |
|
|
Base window origin for the canvas. |
|
|
Window origin for the canvas. |
|
|
Restores the canvas to the state stored at the specified position. |
Version 4.0 | Generated 2025-05-03 | Home |