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;

 

설명

이 method는 line width, line cap, line join, miter limit을 위한 /LW, /LC, /LJ, /ML entry를 가진 ExtGState를 만듭니다. 반환된 name은 GS1처럼 document 안에서 stable하며, SetGraphicsState가 호출될 때 page의 Resources/ExtGState dictionary에 attach됩니다

여러 drawing region이 각 path 전에 page-level setter를 반복하지 않고 같은 stroke geometry를 공유해야 할 때 사용하십시오

LineWidthMiterLimit은 non-negative여야 합니다. Helper는 PDF ExtGState resource model과 일치하도록 PDF 1.2 이상을 요구합니다. HotPDF v2.121.8부터 사용할 수 있습니다