Xojo Developer Conference
25/27th April 2018 in Denver.
MBS Xojo Conference
6/7th September 2018 in Munich, Germany.

DynaPDF Manual - Page 678

Previous Page 677   Index   Next Page 679

Function Reference
Page 678 of 750
pdfSetLineCapStyle(pdf, csRoundCap);
pdfSetLineDashPattern(pdf, "0 60", 0);
pdfMoveTo(pdf, 50, 50);
pdfLineTo(pdf, 550, 50);
pdfStrokePath(pdf);
Output:
60 Units
Return values:
If the function succeeds the return value is 1. If the function fails the return value is 0.
SetLineDashPatternEx
Syntax:
LBOOL pdfSetLineDashPatternEx(
const PPDF* IPDF,
// Instance pointer
const double* Dash, // Array of doubles representing the pattern
UI32 NumValues,
// Array length
SI32 Phase)
// Dash phase
The function sets a line dash pattern in the same way as SetLineDashPattern(). However, this version
accepts an array of doubles instead of a string value. See SetLineDashPattern() for further
information.
Return values:
If the function succeeds the return value is 1. If the function fails the return value is 0.
SetLineJoinStyle
Syntax:
LBOOL pdfSetLineJoinStyle(
const PPDF* IPDF,
// Instance pointer
TLineJoinStyle Style) // see below
typedef enum
{
jsMiterJoin = 0,
jsRoundJoin = 1,
jsBevelJoin = 2
}TLineJoinStyle;
 

Previous topic: How to create a dotted line?

Next topic: SetLineWidth