22.03.2015 Views

DLI Implementation and Reference Guide - Datalogics

DLI Implementation and Reference Guide - Datalogics

DLI Implementation and Reference Guide - Datalogics

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

A.4 <strong>DLI</strong> <strong>Reference</strong> <strong>Guide</strong><br />

dlpdfcontentarcto (DLPDFCONTENT *Content,<br />

PDEGraphicState *gState, int PaintOp, ASFixed X1, ASFixed<br />

Y1, ASFixed Radius, ASFixed X2, ASFixed Y2, ASFixed Xint,<br />

ASFixed Yint)<br />

Return Value: void<br />

Concepts <strong>and</strong> Facilities: <strong>Guide</strong> to the DL Pager Composition System<br />

Description<br />

Parameters<br />

Return Value<br />

This is a convenience method to mimic the Post-<br />

Script ArcTo operator. It will locate the intersections<br />

of the line (X1,Y1)->(Xint,Yint), <strong>and</strong><br />

(X2,Y2)->(Xint,Yint), <strong>and</strong> draw an arc of the<br />

specified radius tangent to those two lines. The<br />

line segment from (X1,Y1) to the arc will be<br />

drawn. Unlike the PostScript ArcTo operator,<br />

the segment from the tangent to (X2,Y2) will<br />

also be drawn.<br />

• DLPDFCONTENT *Content: Represents the<br />

content element. These structures are<br />

destroyed when associated with a page or<br />

form, <strong>and</strong> pointers to them should not be<br />

used after that time.<br />

• PDEGraphicState *gState: Contains<br />

definitions of colors to be applied, <strong>and</strong> line<br />

sizes <strong>and</strong> parameters to be used when<br />

drawing a path.<br />

• int PaintOp: A composite of flags which<br />

define how the text will be displayed. It is set<br />

by performing a bitwise OR with the desired<br />

combination of the Adobe PDF Library flag<br />

values kPDEFill, kPDEStroke,<br />

kPDEEoFill <strong>and</strong> kPDEInvisible.<br />

• ASFixed X1<br />

• ASFixed Y1<br />

• ASFixed Radius<br />

• ASFixed X2<br />

• ASFixed Y2<br />

• ASFixed Xint<br />

• ASFixed Yint<br />

void

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!