Table of Contents

PrintSetBrush function

Description

Sets the style, hatch, and color of the brush as defined by the Windows SDK.

Syntax

status = PrintSetBrush(style, hatch, color)

Parameters

The PrintSetBrush function has the following parameters:

ParameterDescription
StyleAs defined in PRINT_EQUATES, and Windows SDK

Value - Description
0 - Solid line.
1 - Hollow line.
2 - Hatched line.
3 - Patterned line.
hatchAs defined in PRINT_EQUATES, and Windows SDK

Value - Description
0 - Horizontal line
1 - Vertical line.
2 - Forward diagonal line.
3 - Backward diagonal line.
4 - Crossed line.
colorRGB based color.

Returns

True for successful execution or False for failure.

Example

/* Sets the print brush to hatched style with crossed
lines. */
PrintSetBrush(2, 4, 0)