inflate method

inflate

Inflates this RectangleF by the specified amount.

def inflate(self, size):
    ...
ParameterTypeDescription
sizeSizeFThe amount to inflate this rectangle.

inflate

Inflates this RectangleF structure by the specified amount.

def inflate(self, x, y):
    ...
ParameterTypeDescription
xfloatThe amount to inflate this RectangleF structure horizontally.
yfloatThe amount to inflate this RectangleF structure vertically.

inflate

Creates and returns an inflated copy of the specified RectangleF structure. The copy is inflated by the specified amount. The original rectangle remains unmodified.

Returns

The inflated RectangleF.

def inflate(self, rect, x, y):
    ...
ParameterTypeDescription
rectRectangleFThe RectangleF to be copied. This rectangle is not modified.
xfloatThe amount to inflate the copy of the rectangle horizontally.
yfloatThe amount to inflate the copy of the rectangle vertically.

See Also