Rectangle
Overview
Rectangle is a class in Aspose.PDF FOSS for Python.
Represents a rectangle with position and size.
This class provides 1 method for working with Rectangle objects in Python programs.
Available methods include: __init__.
All public members are accessible to any Python application after installing the Aspose.PDF FOSS for Python package.
Properties: bottom, height, left, right, width, x, and 1 more.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
x | float | Read | Get X-coordinate of the lower-left corner. |
y | float | Read | Get Y-coordinate of the lower-left corner. |
width | float | Read | Get width. |
height | float | Read | Get height. |
left | float | Read | Get the left edge. |
bottom | float | Read | Get the bottom edge. |
right | float | Read | Get the right edge. |
Methods
| Signature | Description |
|---|---|
__init__(x: float, y: float, width: float, height: float) | Initialize a rectangle. |