THotPDF.RegisterLineGraphicsState

THotPDF

 

Вгору

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

 

Delphi syntax:

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

 

Опис

Метод створює ExtGState з entries /LW, /LC, /LJ і /ML для line width, line cap, line join і miter limit Returned name stable within document, наприклад GS1, і attaches to page Resources/ExtGState dictionary when SetGraphicsState called

Використовуйте це, коли several drawing regions мають share same stroke geometry без повторення page-level setters before every path

LineWidth і MiterLimit мають бути non-negative Helper requires PDF 1.2 або later, matching PDF ExtGState resource model Доступно з HotPDF v2.121.8