SetGraphicsState

向量圖形、文字、頁面版面

描述

把 NewGraphicsState 建立的可重複使用圖形狀態 ID 套用到目前內容串流,之後的繪圖便使用該 ExtGState

語法

Delphi

Function TPDFlib.SetGraphicsState(GraphicsStateID: Integer): Integer;

ActiveX

Function PDFlib::SetGraphicsState(GraphicsStateID As Long) As Long

DLL

int DLSetGraphicsState(int InstanceID, int GraphicsStateID);

參數

GraphicsStateIDNewGraphicsState 為所選文件傳回的可重複使用圖形狀態 ID

傳回值

0ID 無效,或不是為所選文件建立的
1圖形狀態已套用到目前的內容串流

備註

gs

SaveState 運算子寫進作用中的內容串流 套用可重複使用的圖形狀態之前先呼叫 LoadState,並且