DynaPDF Manual - Page 755
Previous Page 754 Index Next Page 756
Function Reference
Page 755 of 839
SetLineCapStyle
Syntax:
LBOOL pdfSetLineCapStyle(
const PPDF* IPDF,
// Instance pointer
TLineCapStyle Style) // see below
typedef enum
{
csButtCap
= 0,
csRoundCap
= 1,
csSquareCap = 2
}TLineCapStyle;
The function sets the line cap style that specifies how the endpoint of a line will be drawn. The
property must be applied inside an open page, template, or pattern.
Style
Appearance
Description
csButtCap
The stroke is squared off at the endpoint of the
path. There is no projection beyond the end of the
path.
csRoundCap
A semicircular arc with a diameter equal to the
line width is drawn around the endpoint and
filled in.
csSquareCap
The stroke continues beyond the endpoint of the
path for a distance equal to half the line width
and is then squared off.
Default value = csButtCap
Return values:
If the function succeeds the return value is 1. If the function fails the return value is 0.
SetLineDashPattern (obsolete)
Syntax:
LBOOL pdfSetLineDashPattern(
const PPDF* IPDF, // Instance pointer
const char* Dash, // Dash array defined as string
SI32 Phase)
// The pattern's 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.
Previous topic: SetLicenseKey, SetLineAnnotParms
Next topic: SetLineDashPattern2, How to create a dotted line?