DynaPDF Manual - Page 712

Previous Page 711   Index   Next Page 713

Function Reference
Page 712 of 787
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

Start Chat