Xojo Conferences
XDCMay2019MiamiUSA
MBSOct2019CologneDE

DynaPDF Manual - Page 702

Previous Page 701   Index   Next Page 703

Function Reference
Page 702 of 766
SetMiterLimit
Syntax:
SI32 pdfSetMiterLimit(
const PPDF* IPDF, // Instance pointer
double Value)
// New miter limit
When two line segments meet at a sharp angle and mitered joins have been specified as the line join
style (see SetLineJoinStyle()), it is possible for the miter to extend far beyond the thickness of the line
stroking the path. The miter limit imposes a maximum on the ratio of the miter length to the line
width (see Figure below). When the limit is exceeded, the join is converted from a miter to a bevel.
The ratio of miter length to line width is directly related to the angle φ between the segments in user
space by the formula:
miterLength
1
=
lineWidth
sin(ϕ/2)
For example, a miter limit of 1.414 convert miters to bevels for φ less than 90 degrees, a limit of 2.0
converts them for φ less than 60 degrees, and a limit of 10.0 converts them for φ less than
approximately 11.5 degrees.
Default value = 10.0
Return values:
If the function succeeds the return value is 1. If the function fails the return value is 0.
 

Previous topic: SetMetadata

Next topic: SetNumberFormat