| ![[Previous]](../prev.gif) | ![[Contents]](../contents.gif) | ![[Index]](../keyword_index.gif) | ![[Next]](../next.gif) | 
Draw a polyline
#include <gf/gf.h>
int gf_draw_polyline( gf_context_t context,
                      const gf_point_t *pts,
                      size_t npoints,
                      uint32_t flags );
gf
This function draws a polyline, using the specified draw context. The polyline is rendered using the current foreground color. You can also use this function to render a single line or a stroked outline rectangle.
|  | This function will not render a polyline that is under 3 pixels in length. | 
QNX Graphics Framework
| Safety: | |
|---|---|
| Interrupt handler | No | 
| Signal handler | No | 
| Thread | Yes | 
gf_context_set_linedash(), gf_context_set_linejoin(), gf_draw_poly_fill(), gf_point_t
“Drawing lines and polygons” in the Basic Drawing chapter
| ![[Previous]](../prev.gif) | ![[Contents]](../contents.gif) | ![[Index]](../keyword_index.gif) | ![[Next]](../next.gif) |