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

◆ get_bounds() [1/2]

xtd::drawing::rectangle_f xtd::drawing::region::get_bounds ( ) const
noexcept

Gets a xtd::drawing::rectangle_f structure that represents a rectangle that bounds this xtd::drawing::region on the drawing surface of a xtd::drawing::graphics object.

Parameters
gThe xtd::drawing::graphics on which this xtd::drawing::region is drawn.
Returns
A xtd::drawing::rectangle_f structure that represents the bounding rectangle for this xtd::drawing::region in pixels.
Remarks
The current transformation of the graphics context is used to compute the region interior on the drawing surface. The bounding rectangle is not always the smallest possible bounding rectangle depending on the current transformation.