guides:programming:programmers_reference_manual:printsetbrush

PrintSetBrush function

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

status = PrintSetBrush(style, hatch, color)

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.

True for successful execution or False for failure.

/* Sets the print brush to hatched style with crossed
lines. */
PrintSetBrush(2, 4, 0)
  • guides/programming/programmers_reference_manual/printsetbrush.txt
  • Last modified: 2024/06/19 20:20
  • by 127.0.0.1