DynaPDF Manual - Page 706

Previous Page 705   Index   Next Page 707

Function Reference
Page 706 of 770
SetMinLineWidth2 (Rendering Engine)
void PDF_CALL rasSetMinLineWidth2(
IRAS* RasPtr, // Pointer of the rasterizer
float Value)
// Minimum line width (must be positive)
The function sets the minimum line width in which thin lines are rendered. The value should be in
the range 0.1 through 1.0.
Default value: 0.5
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: SetNeedAppearance, SetNumberFormat