graphics.hlp (
Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software,
purely for historical purposes.
If you're looking for up-to-date documentation, particularly for programming,
you should not rely on the information found here, as it will be woefully
out of date.
_getlinestyle
◄Summary► ◄Example► ◄Up► ◄Contents► ◄Index► ◄Back►
────────────────────────────────────────────────────────────────────────────
Some graphics routines (_lineto, _polygon, and _rectangle) output
straight lines to the screen. The type of line can be controlled
with the current line-style mask.
The _getlinestyle function returns the current line-style mask.
The mask is a 16-bit array; each bit represents a pixel in the
line being drawn.
If the bit is 1, the corresponding pixel is set to the color of
the line (the current color). If the bit is 0, the corresponding
pixel is left unchanged. The mask is repeated over the length of
the line. The default mask is 0xFFFF (a solid line).
Return Value
If no mask has been set, _getlinestyle returns the default mask.
-♦-