getSize()
Return the object's width and height. These are the size of its upright bounding box, so they grow as the object rotates.
Parameters
Once an object item has been created, you can use the following function:
item.getSize()
Returns
return width, height
| Value | Type | Description |
|---|---|---|
| width | int or float |
The width, in pixels. |
| height | int or float |
The height, in pixels. |