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

◆ get_bounds()

xtd::drawing::rectangle_f xtd::drawing::drawing_2d::graphics_path::get_bounds ( ) const

Returns a rectangle that bounds this xtd::drawing::drawing_2d::graphics_path.

Returns
A xtd::drawing::rectangle_f that represents a rectangle that bounds this xtd::drawing::drawing_2d::graphics_path.
Remarks
The size of the returned bounding rectangle is influenced by the type of end caps, pen width, and pen miter limit, and therefore produces a "loose fit" to the bounded path. The approximate formula is: the initial bounding rectangle is inflated by pen width, and this result is multiplied by the miter limit, plus some additional margin to allow for end caps.