GetGraphicsState

内容流编辑

描述

从 ISO 页面默认值追踪到某条从 0 起算的指令,返回其生效的图形状态

语法

Delphi

Function TPDFContentProgram.GetGraphicsState(InstructionIndex: Integer; AfterInstruction: Boolean; Out State: TPDFContentGraphicsState): Boolean;

参数

InstructionIndex指令在程序中的索引(从 0 起算)
AfterInstructionTrue 返回指令执行后的状态,False 返回指令执行前的状态
State接收图形状态。索引越界时保持全零

返回值

InstructionIndex 存在时为 True,否则为 false

备注

需要多个指令状态时用 TraceGraphicsStates,因为它只求值程序一次