RectangleFInflate Method (RectangleF, Single, Single) |
Inflates all dimensions of this rectangle by the specified width and height
Namespace:
Eto.Drawing
Assembly:
Eto (in Eto.dll) Version: 2.5.3-dev
Syntax public static RectangleF Inflate(
RectangleF rectangle,
float width,
float height
)
Public Shared Function Inflate (
rectangle As RectangleF,
width As Single,
height As Single
) As RectangleF
static member Inflate :
rectangle : RectangleF *
width : float32 *
height : float32 -> RectangleF
Parameters
- rectangle
- Type: Eto.DrawingRectangleF
Rectangle to inflate - width
- Type: SystemSingle
Width to inflate the left and right of the rectangle by - height
- Type: SystemSingle
Height to inflate the top and bottom of the rectangle by
Return Value
Type:
RectangleFA new rectangle inflated by the specified width and height
Remarks
This inflates the rectangle in all dimensions by the specified width and height.
The resulting rectangle will be increased in width and height twice that of the specified size, and the center
will be in the same location.
A negative width and/or height can be passed in to deflate the rectangle.
See Also