Defining Patterns

The following functions control the style in which straight lines are drawn and the fill pattern used for solid shapes. For more information, use Help.

_floodfill

Fills a bounded shape with the fill pattern set by _setfillmask in the current color established by _setcolor. Pass an x and y coordinate and a boundary color (the color index that marks the edge of the shape to be filled). Returns 0 if unsuccessful.

_floodfill_w

Fills a bounded shape with the fill pattern set by _setfillmask. Pass doubles that describe an x and y position within the window and a boundary color (the color index that marks the edge of the shape to be filled). Returns 0 if unsuccessful.

_getfillmask

Returns the address of the current fill mask, an eight-character array, or 0 if the fill mask is not currently defined.

_getlinestyle

Returns the line style, a short integer whose bits correspond to the screen pixels turned on or off within a line.

_setfillmask

Sets the current fill mask used by _floodfill and functions that draw solid shapes (_ellipse, _pie, and _rectangle). Pass the address of an array of eight unsigned characters, where each bit represents a pixel. The pixels are drawn in the current color. No return value.

_setlinestyle

Sets the current style, which is used to draw the straight lines within _lineto, _rectangle, and _pie. Pass an unsigned short integer within which the bits correspond to the pixels on screen. For example, 0xFFFF represents a solid line, 0xAAAA is a dotted line, and 0xF0F0 is dashed.