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_context_set_penwidth.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_context_set_penwidth.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_context_set_penwidth.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_context_set_penwidth.html on line 8

gf_context_set_penwidth()

Set the pen width

Synopsis:

#include <gf/gf.h>

unsigned gf_context_set_penwidth( gf_context_t context,
                                  unsigned  w );

Arguments:

context
The draw context to set the pen width for.
w
The width of the line, in pixels. Set to 0 to reset the pen width to the default rendering of thin primitives.

Library:

gf

Description:

This function replaces the pixel width of lines for draw primitives such as lines and points.


Note:
  • Currently pen width applies only to polylines on hardware that has accelerated thick line support.
  • The maximum pen width is determined by the hardware. No drawing occurs if the pen width is set to a value that exceeds the maximum. See the Hardware Capabilities appendix for your hardware target's limitations.

Returns:

The previous pen width.

Classification:

QNX Graphics Framework

Safety:
Interrupt handler No
Signal handler No
Thread Yes

See also:

gf_draw_polyline()

Hardware Capabilities appendix


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_context_set_penwidth.html on line 124

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_context_set_penwidth.html on line 124