Skip to main content
Table of Contents

TTMSFNCGraphicsPDFEngine.SaveState Method

Saves the current graphics state and returns a state object that can be passed to RestoreState.

API unit family: TMSFNCGraphicsPDFEngine Declaring type: TTMSFNCGraphicsPDFEngine

Syntax

FMX.TMSFNCGraphicsPDFEngine.hppPascalC++
function SaveState(ACanvasOnly: Boolean = False): TTMSFNCGraphicsSaveState; override;
virtual TTMSFNCGraphicsSaveState* __fastcall SaveState(bool ACanvasOnly = false);

Parameters

Name Description
ACanvasOnly When True, only the canvas-level state is saved; fill, stroke, and font properties are excluded.

Returns

A snapshot of the current graphics state.