Skip to main content
Table of Contents

TTMSFNCGraphics.RestoreState Method

Restores a graphics state previously captured by SaveState.

API unit family: TMSFNCGraphics Declaring type: TTMSFNCGraphics

Syntax

FMX.TMSFNCGraphics.hppPascalC++
procedure RestoreState(AState: TTMSFNCGraphicsSaveState; ACanvasOnly: Boolean = False); virtual;
virtual void __fastcall RestoreState(TTMSFNCGraphicsSaveState* AState, bool ACanvasOnly = false);

Parameters

Name Description
AState State token returned by a prior SaveState call.
ACanvasOnly When True, restores only the canvas transform and clip, leaving fill, stroke, and font unchanged. Default is False.