Pen.Pen(const Brush*, REAL) constructor
Applies to: desktop apps only
Creates a Pen object that uses the attributes of a brush and a real number to set the width of this Pen object.
Pen( [in] const Brush *brush, [in] REAL width );
Type: const Brush*
Pointer to a brush to base this pen on.
Optional. Real number that specifies the width of this pen's stroke. The default value is 1.0.
If you pass the address of a pen to one of the draw methods of a Graphics object, the width of the pen's stroke is dependent on the unit of measure specified in the Graphics object. The default unit of measure is UnitPixel, which is an element of the Unit enumeration.
SolidBrush sBrush(Color(255,255,0,0)); Pen pen(&sBrush, 4.0f);
Minimum supported client
|Windows XP, Windows 2000 Professional|
Minimum supported server
|Windows 2000 Server|
|Gdipluspen.h (include Gdiplus.h)|
Build date: 3/6/2012