## Printer Device Driver

[prev][next][parent][TOC]

### fill_polygon

Fills the area by querying the outline of the path and filling the outline as a HPGL polygon. This function only fills the area if:

Clipping is simple. (1 clip)
Fill mode is alternate (FPATH_ALTERNATE)
Engine version is 2.02 or later

Current plotters can only handle 1 clip rectangles.

Notes:

1.Because older plotters have small polygon buffers, this method might not always work.

2.On the 32-bit Engine (version 2.02 or greater), calling GreOutlinePath with the new option (NO_CLIPPING_REQD ) results in a call to the DrawLinesInPath function for each unclipped subpath. On the 16-bit Engine, calling GreOutlinePath results in many calls to the PolyShortLine function for each subpath. Because the end of the subpath is too difficult to predict on the 16-bit engine or older versions of the 32-bit engine, the polygon filling method is used only on engine versions 2.02 or later.