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

DynaPDF Manual - Page 676

Previous Page 675   Index   Next Page 677

Function Reference
Page 676 of 750
The default font to draw the caption is Helvetica and the default font size is 9 units. In order to use
the default font set the parameter FontHandle to -1. The default font size is used if the parameter
FontSize is set to to zero.
Return values:
If the function succeeds the return value is 1. If the function fails the return value is 0.
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.
 

Previous topic: SetLineAnnotParms

Next topic: How to create a dotted line?