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

◆ inflate() [2/4]

void xtd::drawing::rectangle_f::inflate ( float  width,
float  height 
)
noexcept

Enlarges this xtd::drawing::rectangle_f by the specified amount.

Parameters
widthThe amount to inflate this xtd::drawing::rectangle_f horizontally.
heightThe amount to inflate this xtd::drawing::rectangle_f verticaly.
Remarks
This method enlarges this rectangle, not a copy of it. The rectangle is enlarged in both directions along an axis. For example, if a 50 by 50 rectangle is enlarged by 50 in the x-axis, the resultant rectangle will be 150 units long (the original 50, the 50 in the minus direction, and the 50 in the plus direction) maintaining the rectangle's geometric center.
If either x or y is negative, the xtd::drawing::rectangle_f structure is deflated in the corresponding direction.