HatchBrush::HatchBrush(HatchStyle,constColor&,constColor&) method (gdiplusbrush.h)

Creates a HatchBrush::HatchBrush object based on a hatch style, a foreground color, and a background color.

Syntax

void HatchBrush(
  [in]      HatchStyle    hatchStyle,
  [in, ref] const Color & foreColor,
  [in, ref] const Color & backColor
);

Parameters

[in] hatchStyle

Type: HatchStyle

Element of the HatchStyle enumeration that specifies the pattern of hatch lines that will be used.

[in, ref] foreColor

Type: const Color

Reference to a color to use for the hatch lines.

[in, ref] backColor

Type: const Color

Optional. Reference to a color to use for the background. The default value is Color()(a Color object created by the default Color constructor).

Return value

None

Requirements

Requirement Value
Minimum supported client Windows XP, Windows 2000 Professional [desktop apps only]
Minimum supported server Windows 2000 Server [desktop apps only]
Target Platform Windows
Header gdiplusbrush.h (include Gdiplus.h)
Library Gdiplus.lib
DLL Gdiplus.dll

See also

Brushes and Filled Shapes

Color

HatchBrush

HatchStyle

Using a Brush to Fill Shapes