Rectangle constructor
Contents
[
Hide
]init
Constructs a new instance of Rectangle
def __init__(self):
...
init
Initializes a new instance of the Rectangle
structure with the specified location and size.
def __init__(self, location, size):
...
Parameter | Type | Description |
---|---|---|
location | Point | A Point that represents the upper-left corner of the rectangular region. |
size | Size | A Size that represents the width and height of the rectangular region. |
init
Initializes a new instance of the Rectangle
structure with the specified location and size.
def __init__(self, x, y, width, height):
...
Parameter | Type | Description |
---|---|---|
x | int | The x-coordinate of the upper-left corner of the rectangle. |
y | int | The y-coordinate of the upper-left corner of the rectangle. |
width | int | The width of the rectangle. |
height | int | The height of the rectangle. |
See Also
- module
aspose.cad
- class
Point
- class
Rectangle
- class
Size