To assist vector devices in filling complex areas, their drivers can call the engine functions, listed in the following table, that create, modify, and enumerate a path. The driver has access to paths through the PATHOBJ.
GDI Path Service Function |
Description |
Allocates a path for the driver’s temporary use. The driver should delete this path before returning to GDI from its current drawing call. | |
Deletes a path allocated by EngCreatePath. | |
Returns a bounding rectangle for the path. | |
Notifies a PATHOBJ that the driver will begin calling PATHOBJ_bEnum to enumerate the curves in the specified path. This function must be called in case of an enumeration restart. | |
Retrieves the next PATHDATA record from a path. Each record describes all or part of a subpath. | |
Allows the driver to ask for lines to be clipped against a CLIPOBJ. This is useful when the clip region is more complex than a single rectangle. | |
Enumerates clipped line segments from a path. In response to DrvPaint, a vector driver can create a path, fill it with lines to describe the brush, and pass the path to PATHOBJ_bEnumClipLines for clipping against the complex region. | |
Changes the current position in a PATHOBJ-defined path. | |
Draws lines in a PATHOBJ-defined path. | |
Draws Bezier curves (cubic splines) in a PATHOBJ-defined path. | |
Closes a path (for filling) by drawing a line to the starting point. |
For more information on these functions, refer to the Graphics Driver Reference.