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

◆ width() [1/2]

float xtd::drawing::pen::width ( ) const
noexcept

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

Returns
The width of this xtd::drawing::pen.
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.
Examples
graphics.cpp.