Sets the line style.
#include <graph.h>
void __far _setlinestyle( unsigned short mask );
mask | Desired line-style mask |
Some graphics routines (_lineto, _polygon, and _rectangle) draw straight lines on the screen. The type of line is controlled by the current line-style mask.
The _setlinestyle function selects the mask used for line drawing. The mask argument is a 16-bit array, where each bit represents a pixel in the line being drawn. If a bit is 1, the corresponding pixel is set to the color of the line (the current color). If a bit is 0, the corresponding pixel is left unchanged. The template is repeated for the entire length of the line.
The default mask is 0xFFFF (a solid line).
None.
Standards:None
16-Bit:DOS
32-Bit:None
_getlinestyle, _lineto functions, _polygon functions, _rectangle functions
See the example for _getlinestyle.