THotPDF.RegisterLineGraphicsState

THotPDF

 

顶部

Registers a reusable PDF ExtGState dictionary carrying line drawing parameters and returns the resource name used by THPDFPage.SetGraphicsState.

 

Delphi 语法:

function RegisterLineGraphicsState(LineWidth: Single; LineCap: TLineCapStyle; LineJoin: TLineJoinStyle; MiterLimit: Single): AnsiString;

 

说明

该方法创建包含 /LW、/LC、/LJ 和 /ML entries 的 ExtGState,用于 line width、line cap、line join 和 miter limit。返回名称在文档内稳定,例如 GS1;调用 SetGraphicsState 时会附加到页面 Resources/ExtGState 字典

当多个 drawing regions 应共享同一 stroke geometry,而不想在每个 path 前重复 page-level setters 时,请使用此方法

LineWidth 和 MiterLimit 必须为非负值。该辅助函数要求 PDF 1.2 或更高版本,与 PDF ExtGState resource model 一致。自 HotPDF v2.121.8 起可用