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

DynaPDF Manual - Page 687

Previous Page 686   Index   Next Page 688

Function Reference
Page 687 of 750
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:
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