xtd 0.2.0
Loading...
Searching...
No Matches

◆ pen() [2/4]

template<typename brush_t >
xtd::drawing::pen::pen ( const brush_t &  brush,
float  width 
)
inline

Initializes a new instance of the xtd::drawing::pen class with the specified xtd::drawing::brush.

Parameters
brushA xtd::drawing::brush that determines the fill properties of this xtd::drawing::pen.
widthA single number that represent the pen width.
Remarks
The brush property determines how the xtd::drawing::pen draws lines. Lines are drawn as if they are filled rectangles, with the characteristics of the specified brush.
The width property of the new xtd::drawing::pen is set to 1 (the default).