
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Watcom C/C++ v10.0 : C library - <b>synopsis:</b>
[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
Synopsis:
#include <graph.h>
unsigned short _FAR _getlinestyle( void );
Description:
The _getlinestyle function returns the current line-style mask.
The line-style mask determines the style by which lines and arcs are
drawn. The mask is treated as an array of 16 bits. As a line is drawn,
a pixel at a time, the bits in this array are cyclically tested. When a
bit in the array is 1, the pixel value for the current point is set
using the current color according to the current plotting action;
otherwise, the pixel value for the point is left unchanged. A solid
line would result from a value of 0xFFFF and a dashed line would result
from a value of 0xF0F0
The default line style mask is 0xFFFF
Returns:
The _getlinestyle function returns the current line-style mask.
See Also:
_lineto, _lineto_w, _pie, _pie_w, _pie_wxy, _rectangle, _rectangle_w, _rectangle_wxy, _polygon, _polygon_w, _polygon_wxy, _setlinestyle
Example:
#include <conio.h>
#include <graph.h>
#define DASHED 0xf0f0
main()
{
unsigned old_style;
_setvideomode( _VRES16COLOR );
old_style = _getlinestyle();
_setlinestyle( DASHED );
_rectangle( _GBORDER, 100, 100, 540, 380 );
_setlinestyle( old_style );
getch();
_setvideomode( _DEFAULTMODE );
}
Classification:
PC Graphics
Systems:
DOS, QNX
Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson