inflate method

inflate

Inflates this Rectangle by the specified amount.

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

inflate

Inflates this Rectangle by the specified amount.

def inflate(self, width, height):
    ...
ParameterTypeDescription
widthintThe amount to inflate this Rectangle horizontally.
heightintThe amount to inflate this Rectangle vertically.

inflate

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

Returns

The inflated Rectangle.

def inflate(self, rect, x, y):
    ...
ParameterTypeDescription
rectRectangleThe Rectangle with which to start. This rectangle is not modified.
xintThe amount to inflate this Rectangle horizontally.
yintThe amount to inflate this Rectangle vertically.

See Also