Pen::GetBrush method (gdipluspen.h)

The Pen::GetBrush method gets the Brush object that is currently set for this Pen object.

Syntax

Brush * GetBrush();

Return value

Type: Brush*

This method returns a pointer to a Brush object that is currently used to fill a line.

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 gdipluspen.h (include Gdiplus.h)
Library Gdiplus.lib
DLL Gdiplus.dll

See also

Brush

Brushes and Filled Shapes

Pen

Pen::SetBrush

Using a Brush to Fill Shapes