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