Warning: main(/www/www/htdocs/style/globals.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/gf/dev_guide/api/gf_draw_poly_fill.html on line 1

Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/globals.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/gf/dev_guide/api/gf_draw_poly_fill.html on line 1

Warning: main(/www/www/htdocs/style/header.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/gf/dev_guide/api/gf_draw_poly_fill.html on line 8

Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/header.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/gf/dev_guide/api/gf_draw_poly_fill.html on line 8

gf_draw_poly_fill()

Draw a filled polygon

Synopsis:

#include <gf/gf.h>

int gf_draw_poly_fill( gf_context_t context,
                       const gf_point_t *pts,
                       size_t npoints );

Arguments:

context
The graphics context to use.
pts
An array of gf_point_t structures that represent the vertices of the polygon.
npoints
The number of items in pts. There must be at least three points; otherwise, the function doesn't draw anything.

Library:

gf

Description:

This function draws a filled polygon using the given rendering context. The filled polygon is rendered using the context's current foreground color and the current fill rule. For more information about the default fill rule, and other supported fill rules, see gf_context_set_polyfill().

Returns:

GF_ERR_OK
Success.
GF_ERR_NOSUPPORT
No support for the requested primitive and/or state; the operation needs to be broken down into simpler pieces.
GF_ERR_NOLOCK
The hardware isn't locked; check to ensure gf_draw_begin() was called successfully.

Classification:

QNX Graphics Framework

Safety:
Interrupt handler No
Signal handler No
Thread Yes

See also:

gf_context_set_polyfill(), gf_draw_polyline(), gf_draw_rect(), gf_point_t

Drawing lines and polygons in the Basic Drawing chapter


Warning: main(/www/www/htdocs/style/footer.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/gf/dev_guide/api/gf_draw_poly_fill.html on line 132

Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/footer.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/gf/dev_guide/api/gf_draw_poly_fill.html on line 132