Caution: This version of this document is no longer maintained. For the latest documentation, see http://www.qnx.com/developers/docs.

gf_draw_spanlist()

Draw a list of spans

Synopsis:

#include <gf/gf.h>

int gf_draw_spanlist (
        gf_context_t    context,
        unsigned        nspans,
        int             x1[],
        int             x2[],
        int             y[]  );

Arguments:

context
The graphics context to use.
nspans
The number of spans in the list.
x1, x2
An array of left and right x values for the spans.
y
An array of y values for the spans.

Library:

gf

Description:

This function draws a list of spans in the current foreground color. A span is a horizontal run of pixels with fixed height of one pixel.

Returns:

GF_ERR_OK
Success.
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_linedash(), gf_context_set_linejoin(), gf_draw_poly_fill(), gf_draw_span(), gf_point_t

Drawing lines and polygons in the Basic Drawing chapter.