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

◆ width() [2/2]

xtd::drawing::pen & xtd::drawing::pen::width ( float  value)

Sets the width of this xtd::drawing::pen, in units of the xtd::drawing::graphics object used for drawing.

Parameters
valueThe width of this xtd::drawing::pen.
Returns
This current instance.
Remarks
You can access the unit of measure of the xtd::drawing::graphics object using its xtd::drawing::graphics::page_unit property. The unit of measure is typically pixels. A Width of 0 will result in the xtd::drawing::pen drawing as if the xtd::drawing::pen::width were 1.