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

DynaPDF Manual - Page 191

Previous Page 190   Index   Next Page 192

Function Reference
Page 191 of 750
CloseImportFileEx
Syntax:
LBOOL pdfCloseImportFileEx(
const PPDF* IPDF, // Instance pointer
UI32 Handle)
// File handle
The function closes a specific import file and deletes the corresponding parser instance. The
parameter Handle must be a valid file handle that was returned by OpenImportFile() or
OpenImportBuffer(). See OpenImportFile() for further information.
Return values:
If the function succeeds the return value is 1. If the function fails the return value is 0.
ClosePath
Syntax:
LBOOL pdfClosePath(
const PPDF* IPDF,
// Instance pointer
TPathFillMode FillMode) // see below
typedef enum
{
// Nonzero Winding Number Rule
fmFillNoClose,
// Fill but do not close the path
fmStrokeNoClose,
// Stroke but do not close the path
fmFillStrokeNoClose,
// Fill and stroke but do not close the path
fmFill,
// Fill the path
fmStroke,
// Stroke the path
fmFillStroke,
// Fill and stroke the path
// Even-Odd Rule
fmFillEvOdd,
// Fill the path
fmFillStrokeEvOdd,
// Fill and stroke the path
fmFillEvOddNoClose,
// Fill but do not close the path
fmFillStrokeEvOddNoClose, // Fill and stroke but do not close the path
fmNoFill,
// Discard the path
fmClose
// Close the path and begin a new sub path
}TPathFillMode;
In PDF all vector graphics are paths. Paths can be filled, stroked, or both. Filled path can be drawn by
applying the nonzero winding number rule or the even-odd rule (see Path Construction and Painting
for further information). Both rules produce different results on complex paths but they have no
effect on simple paths like rectangles, circles, and so on.
The filling rules are can be used to produce holes in a path; an area that is left unpainted. The draw
direction is important when drawing simple shapes like rectangles and so on. See
SetDrawDirection() for further information.
The flag fmNoFill can be used to discard a path that was already drawn.
 

Previous topic: CloseImportFile

Next topic: ComputeBBox