DynaPDF Manual - Page 757

Previous Page 756   Index   Next Page 758

Function Reference
Page 757 of 839
float dash[2] = {0.0f, 60.0f};
pdfSetLineWidth(pdf, 30);
pdfSetLineCapStyle(pdf, csRoundCap);
pdfSetLineDashPattern2(pdf, dash, 0.0f);
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 (obsolete)
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
This function is obsolete, please use SetLineDashPattern2() instead.
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: SetLineDashPattern2, How to create a dotted line?

Next topic: SetLineWidth, SetLinkHighlightMode