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_span.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_span.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_span.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_span.html on line 8
Draw a span
#include <gf/gf.h>
int gf_draw_span (
gf_context_t context,
int x1,
int x2,
int y );
- context
- The graphics context to use.
- x1
- The left x value of the span.
- x2
- The right x value of the span.
- y
- The y value of the span.
gf
This function draws a span in the context's current foreground color.
A span is a horizontal run of pixels with a fixed height of one pixel.
- GF_ERR_OK
- Success.
- GF_ERR_PARM
- Invalid span; x1 and x2 are inverted
- GF_ERR_NOLOCK
- The hardware isn't locked; check to ensure gf_draw_begin() was called successfully.
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_draw_spanlist(),
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_span.html on line 140
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_span.html on line 140